Skip to content

Commit

Permalink
Refactor old actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jhj0517 committed Oct 2, 2024
1 parent 677f0fa commit dbb26d5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 21 deletions.
33 changes: 14 additions & 19 deletions .github/workflows/ci-shell.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI Shell Script
name: CI-Shell Script

on:
workflow_dispatch:
Expand All @@ -9,39 +9,34 @@ on:
pull_request:
branches:
- master

env:
PYTHON_VERSION: '3.10'

jobs:
test-shell-script:

runs-on: ubuntu-latest
strategy:
matrix:
python: [ "3.10" ]

steps:
- name: Clean up space for action
run: rm -rf /opt/hostedtoolcache

- name: 'Checkout GitHub Action'
uses: actions/checkout@v3

- name: Setup Python ${{ env.PYTHON_VERSION }} Environment
uses: actions/setup-python@v4
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
python-version: ${{ matrix.python }}

- name: 'Setup FFmpeg'
uses: FedericoCarboni/setup-ffmpeg@v3
id: setup-ffmpeg
with:
ffmpeg-version: release
architecture: 'arm64'
linking-type: static
- name: Install git and ffmpeg
run: sudo apt-get update && sudo apt-get install -y git ffmpeg

- name: 'Execute Install.sh'
- name: Execute Install.sh
run: |
chmod +x ./Install.sh
./Install.sh
- name: 'Execute start-webui.sh'
- name: Execute start-webui.sh
run: |
chmod +x ./start-webui.sh
timeout 60s ./start-webui.sh || true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ on:

push:
branches:
- master
- master
pull_request:
branches:
- master
- master

jobs:
build:
Expand Down

0 comments on commit dbb26d5

Please sign in to comment.