12
12
if : startsWith(github.ref, 'refs/tags/v')
13
13
strategy :
14
14
matrix :
15
- ffmpeg : ["6.0", "5.1.2", "4.4.3"]
16
- flavor : [linux, qsv-linux, windows]
17
- hwlib : [libmfx]
18
- include :
19
- - ffmpeg : " 6.0"
20
- flavor : qsv-linux
21
- hwlib : libvpl
15
+ ffmpeg : ["6.0", "5.1.3", "4.4.4"]
16
+ flavor : [linux, windows]
22
17
steps :
23
18
- name : Checkout
24
19
uses : actions/checkout@v3
@@ -29,25 +24,19 @@ jobs:
29
24
- name : Set build target (linux)
30
25
if : matrix.flavor == 'linux'
31
26
run : |
32
- echo "build_tag=" >> $GITHUB_ENV
33
- echo "target_os=linux-amd64" >> $GITHUB_ENV
34
-
35
- - name : Set build target (qsv-linux)
36
- if : matrix.flavor == 'qsv-linux'
37
- run : |
38
- echo "build_tag=-${{ matrix.hwlib }}" >> $GITHUB_ENV
27
+ echo "build_tag=linux" >> $GITHUB_ENV
39
28
echo "target_os=linux-amd64" >> $GITHUB_ENV
40
29
41
30
- name : Set build target (windows)
42
31
if : matrix.flavor == 'windows'
43
32
run : |
44
- echo "build_tag=- windows" >> $GITHUB_ENV
33
+ echo "build_tag=windows" >> $GITHUB_ENV
45
34
echo "target_os=x64" >> $GITHUB_ENV
46
35
47
36
- name : Export - ffmpeg
48
37
run : |
49
- docker buildx build --platform linux/amd64 --target export ${{ env.build_tag }} --output type=local,dest=/tmp/build \
50
- -t ffmpeg${{ env.build_tag }} --build-arg FFMPEG_VERSION=${{ matrix.ffmpeg }} -f ./Dockerfile .
38
+ docker buildx build --platform linux/amd64 --target ffmpeg- ${{ env.build_tag }}-export --output type=local,dest=/tmp/build \
39
+ -t ffmpeg- ${{ env.build_tag }} --build-arg FFMPEG_VERSION=${{ matrix.ffmpeg }} -f ./Dockerfile .
51
40
52
41
- name : Archive artifact
53
42
run : |
0 commit comments