jhj0517 commited on
Commit
dbb26d5
·
1 Parent(s): 677f0fa

Refactor old actions

Browse files
.github/workflows/ci-shell.yml CHANGED
@@ -1,4 +1,4 @@
1
- name: CI Shell Script
2
 
3
  on:
4
  workflow_dispatch:
@@ -9,39 +9,34 @@ on:
9
  pull_request:
10
  branches:
11
  - master
12
-
13
- env:
14
- PYTHON_VERSION: '3.10'
15
 
16
  jobs:
17
  test-shell-script:
 
18
  runs-on: ubuntu-latest
 
 
 
 
19
  steps:
20
  - name: Clean up space for action
21
  run: rm -rf /opt/hostedtoolcache
22
 
23
- - name: 'Checkout GitHub Action'
24
- uses: actions/checkout@v3
25
-
26
- - name: Setup Python ${{ env.PYTHON_VERSION }} Environment
27
- uses: actions/setup-python@v4
28
  with:
29
- python-version: ${{ env.PYTHON_VERSION }}
30
 
31
- - name: 'Setup FFmpeg'
32
- uses: FedericoCarboni/setup-ffmpeg@v3
33
- id: setup-ffmpeg
34
- with:
35
- ffmpeg-version: release
36
- architecture: 'arm64'
37
- linking-type: static
38
 
39
- - name: 'Execute Install.sh'
40
  run: |
41
  chmod +x ./Install.sh
42
  ./Install.sh
43
 
44
- - name: 'Execute start-webui.sh'
45
  run: |
46
  chmod +x ./start-webui.sh
47
  timeout 60s ./start-webui.sh || true
 
1
+ name: CI-Shell Script
2
 
3
  on:
4
  workflow_dispatch:
 
9
  pull_request:
10
  branches:
11
  - master
 
 
 
12
 
13
  jobs:
14
  test-shell-script:
15
+
16
  runs-on: ubuntu-latest
17
+ strategy:
18
+ matrix:
19
+ python: [ "3.10" ]
20
+
21
  steps:
22
  - name: Clean up space for action
23
  run: rm -rf /opt/hostedtoolcache
24
 
25
+ - uses: actions/checkout@v4
26
+ - name: Setup Python
27
+ uses: actions/setup-python@v5
 
 
28
  with:
29
+ python-version: ${{ matrix.python }}
30
 
31
+ - name: Install git and ffmpeg
32
+ run: sudo apt-get update && sudo apt-get install -y git ffmpeg
 
 
 
 
 
33
 
34
+ - name: Execute Install.sh
35
  run: |
36
  chmod +x ./Install.sh
37
  ./Install.sh
38
 
39
+ - name: Execute start-webui.sh
40
  run: |
41
  chmod +x ./start-webui.sh
42
  timeout 60s ./start-webui.sh || true
.github/workflows/ci.yml CHANGED
@@ -5,10 +5,10 @@ on:
5
 
6
  push:
7
  branches:
8
- - master
9
  pull_request:
10
  branches:
11
- - master
12
 
13
  jobs:
14
  build:
 
5
 
6
  push:
7
  branches:
8
+ - master
9
  pull_request:
10
  branches:
11
+ - master
12
 
13
  jobs:
14
  build: