Skip to content

Commit c14cd93

Browse files
committed
Refactor test workflow to run only on linux
1 parent 217b124 commit c14cd93

2 files changed

Lines changed: 14 additions & 86 deletions

File tree

‎.github/actions/setup-ffmpeg/action.yml‎

Lines changed: 0 additions & 69 deletions
This file was deleted.

‎.github/workflows/unit-test.yml‎

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,27 @@ permissions: read-all
1212
jobs:
1313
tests:
1414
name: Execute unit tests
15-
runs-on: ${{ matrix.os }}
15+
runs-on: ubuntu-latest
1616
permissions:
1717
contents: write
18-
strategy:
19-
fail-fast: false
20-
matrix:
21-
os: [ ubuntu-latest, windows-latest, macos-latest ]
18+
checks: write
19+
security-events: write
2220
steps:
2321
- name: Checkout code changes
2422
uses: actions/checkout@v7
2523

2624
- name: Setup FFmpeg and FFprobe
27-
uses: ./.github/actions/setup-ffmpeg
28-
with:
29-
# bump: FFmpeg /ffmpeg-version: '([\d.]+)'/ docker:mwader/static-ffmpeg|/\d+\./|*
30-
ffmpeg-version: '9.0'
25+
env:
26+
# bump: FFmpeg /FF_VERSION: ([\d.]+)/ docker:mwader/static-ffmpeg|/\d+\./|*
27+
FF_VERSION: 9.0
28+
run: |
29+
INSTALL_DIR="$RUNNER_TEMP/ffmpeg"
30+
mkdir -p "$INSTALL_DIR"
31+
CID=$(docker create "mwader/static-ffmpeg:$FF_VERSION")
32+
docker export "$CID" | tar -xf - -C "$INSTALL_DIR" --wildcards 'ff*'
33+
docker rm -v "$CID" > /dev/null
34+
35+
echo "$INSTALL_DIR" >> "$GITHUB_PATH"
3136
3237
- name: Setup Java
3338
uses: actions/setup-java@v5
@@ -47,14 +52,6 @@ jobs:
4752
shell: bash
4853
run: ./gradlew test
4954

50-
qodana:
51-
name: Perform Qodana analysis
52-
needs: tests
53-
runs-on: ubuntu-latest
54-
permissions:
55-
checks: write
56-
security-events: write
57-
steps:
5855
- name: Checkout code changes
5956
uses: actions/checkout@v7
6057
with:

0 commit comments

Comments
 (0)