-
Notifications
You must be signed in to change notification settings - Fork 109
609 lines (588 loc) · 19.6 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
name: Build
on:
push:
schedule:
- cron: '0 0 * * 0'
env:
# if: (github.event_name == 'schedule')
# GITHUB_ENV: https://docs.github.com/en/actions/learn-github-actions/environment-variables#about-environment-variables
FF_VERSION: ${{ vars.FF_VER }} # TODO: latest release if triggered by schedule
LLVM_VER: ${{ vars.LLVM_VER }}
LLVM_VER_DEFAULT: 19
NINJA_STATUS: '[%f/%t %e %r]'
SF_PW_MAPPED: ${{ secrets.SF_PW }}
SF_USER_MAPPED: ${{ secrets.SF_USER }}
VC_LTL_VER: ${{ vars.VC_LTL_VER }}
jobs:
Apple:
# See: https://docs.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix
runs-on: macos-latest
env:
TARGET_OS: ${{ matrix.target }}
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [default,lite,lite-lto] # lto reduce about 300KB for lite build
target: [macOS,iOS,iOSSimulator,visionOS,visionOSSimulator,tvOS,tvOSSimulator,macCatalyst]
exclude:
- config: default
target: iOS
- config: default
target: iOSSimulator
- config: lite
target: iOSSimulator
- config: default
target: macCatalyst
- config: lite
target: macCatalyst
- config: default
target: tvOS
- config: default
target: tvOSSimulator
- config: lite
target: tvOSSimulator
- config: default
target: visionOS
- config: lite-lto # llvm-ar-17 merged visionOS lto libs has wrong contents (/,//,*.o/)
target: visionOS
- config: default
target: visionOSSimulator
- config: lite-lto
target: visionOSSimulator
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
run: sudo xcode-select -s /Applications/Xcode_15.4.app
- name: Create Build Environment
shell: bash
env:
DEVTOOLS_CACHE_HIT: ${{ steps.devtools-cache.outputs.cache-hit }}
EXTERNAL_DEP_CACHE_HIT: ${{ steps.external-dep-cache.outputs.cache-hit }}
run: ./tools/ci-before-build.sh
- name: Configure and Build
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
[[ "${TARGET_OS}" == "iOS" || "${TARGET_OS}" == "tvOS"* || "${TARGET_OS}" == "xr"* || "${TARGET_OS}" == "vision"* ]] && export USER_OPT="--enable-wolfssl"
./avbuild.sh ${TARGET_OS}
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
Wasm:
if: false
runs-on: macos-latest
env:
TARGET_OS: 'wasm'
steps:
- uses: actions/checkout@v4
- name: Create Build Environment
shell: bash
env:
DEVTOOLS_CACHE_HIT: ${{ steps.devtools-cache.outputs.cache-hit }}
EXTERNAL_DEP_CACHE_HIT: ${{ steps.external-dep-cache.outputs.cache-hit }}
run: ./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
./avbuild.sh ${TARGET_OS}
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}
path: ffmpeg-*.tar.xz
RaspberryPiLegacy_clang:
if: false
runs-on: ubuntu-latest
env:
TARGET_OS: 'raspberry-pi'
COMPILER: 'clang'
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite]
steps:
- uses: actions/checkout@v4
- name: 'Restore sysroot cache'
id: sysroot-cache
uses: actions/cache@v4
with:
path: /tmp/sysroot
key: sysroot-${{ env.TARGET_OS }}-${{ vars.LINUX_SYSROOT_ID }}
- name: Create Build Environment
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export SYSROOT=/tmp/sysroot
V=1 USE_TOOLCHAIN=clang-${LLVM_VER:-$LLVM_VER_DEFAULT} ./avbuild.sh ${TARGET_OS}
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
VS2022:
runs-on: windows-2022
env:
TARGET_OS: ${{ matrix.target }}
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [default,lite]
target: [windows-desktop,uwp]
exclude:
- config: default
target: uwp
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Create Build Environment
shell: cmd
run: |
set FF_BRANCH=%FF_VERSION%
if not [%FF_BRANCH%]==[master] set FF_BRANCH=release/%FF_VERSION%
git clone -b %FF_BRANCH% --depth 1 --no-tags https://git.ffmpeg.org/ffmpeg.git ffmpeg-%FF_VERSION%
if not [%CONFIG_SUFFIX%]==[-default] copy /y config%CONFIG_SUFFIX%.sh config.sh
- uses: msys2/setup-msys2@v2
with:
release: false # disable installation cache, so exe path in avbuild.sh is correct
msystem: MSYS
update: true
install: >-
make
diffutils
patch
pkg-config
nasm
yasm
- name: Install dev packages
shell: msys2 {0}
run: |
wget https://sourceforge.net/projects/avbuild/files/dep/dep.7z/download -O dep.7z
- name: Configure and Build
shell: cmd
run: |
7z x -y dep.7z -otools
set PKG_CONFIG_PATH_MFX=%CD%\tools\dep\VS2022\lib\pkgconfig
set MSYS2_DIR=C:\msys64
set HOME=%CD%
set FFSRC=%CD%\ffmpeg-%FF_VERSION%
set BUILD_NOW=true
tools\vcbuild.bat VS2022 %TARGET_OS%10 all
- name: Make SDK
shell: cmd
run: |
set SDK_NAME=ffmpeg-%FF_VERSION%-%TARGET_OS%-vs2022%CONFIG_SUFFIX%
move sdk* %SDK_NAME%
7z a -ssc -m0=lzma2 -mx=9 -ms=on -mf=off -xr!*.pdb %SDK_NAME%.7z %SDK_NAME%
7z a -ssc -m0=lzma2 -mx=9 -ms=on -mf=off %SDK_NAME%-pdb.7z -ir!%SDK_NAME%\*.pdb
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-VS2022${{ matrix.config }}
path: ffmpeg-*.7z
VS2022LTL:
runs-on: windows-2022
env:
TARGET_OS: ${{ matrix.target }}
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite,default]
target: [windows-desktop]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: 'Restore dep cache'
id: dep-cache
uses: actions/cache@v4
with:
path: VC-LTL
key: dep-${{ vars.VC_LTL_VER }}
- if: ${{ steps.dep-cache.outputs.cache-hit != 'true' }}
name: Get VC-LTL
shell: bash
run: |
curl -kL -o ltl.7z https://github.com/Chuyu-Team/VC-LTL5/releases/download/v${{ vars.VC_LTL_VER }}/VC-LTL-${{ vars.VC_LTL_VER }}-Binary.7z
7z x ltl.7z -oVC-LTL
- name: Create Build Environment
shell: cmd
run: |
set FF_BRANCH=%FF_VERSION%
if not [%FF_BRANCH%]==[master] set FF_BRANCH=release/%FF_VERSION%
git clone -b %FF_BRANCH% --depth 1 --no-tags https://git.ffmpeg.org/ffmpeg.git ffmpeg-%FF_VERSION%
if not [%CONFIG_SUFFIX%]==[-default] copy /y config%CONFIG_SUFFIX%.sh config.sh
- uses: msys2/setup-msys2@v2
with:
release: false # disable installation cache, so exe path in avbuild.sh is correct
msystem: MSYS
update: true
install: >-
make
diffutils
patch
pkg-config
nasm
yasm
- name: Install dev packages
shell: msys2 {0}
run: |
wget https://sourceforge.net/projects/avbuild/files/dep/dep.7z/download -O dep.7z
- name: Configure and Build
shell: cmd
run: |
7z x -y dep.7z -otools
set VC_LTL_DIR=%CD%\VC-LTL
set PKG_CONFIG_PATH_MFX=%CD%\tools\dep\VS2022LTL\lib\pkgconfig
set MSYS2_DIR=C:\msys64
set HOME=%CD%
set FFSRC=%CD%\ffmpeg-%FF_VERSION%
set BUILD_NOW=true
tools\vcbuild.bat VS2022 %TARGET_OS%10 all
- name: Make SDK
shell: cmd
run: |
set SDK_NAME=ffmpeg-%FF_VERSION%-%TARGET_OS%-vs2022ltl%CONFIG_SUFFIX%
move sdk* %SDK_NAME%
7z a -ssc -m0=lzma2 -mx=9 -ms=on -mf=off -xr!*.pdb %SDK_NAME%.7z %SDK_NAME%
7z a -ssc -m0=lzma2 -mx=9 -ms=on -mf=off %SDK_NAME%-pdb.7z -ir!%SDK_NAME%\*.pdb
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-VS2022ltl${{ matrix.config }}
path: ffmpeg-*.7z
LAVFilters:
if: false
runs-on: ubuntu-latest
env:
FFREPO: 'git://git.1f0.de/ffmpeg'
TARGET_OS: 'windows-desktop'
COMPILER: clang
VCDIR: '/tmp/msvcrt-dev'
WINDOWSSDKDIR: '/tmp/winsdk'
PKG_CONFIG_PATH_MFX: '/tmp/dep/ClangCL/lib/pkgconfig'
AMF_DIR: "/tmp/dep/include"
CONFIG_SUFFIX: '-lavfilters'
steps:
- uses: actions/checkout@v4
if: ${{ env.FF_VERSION == 'master' }}
with:
submodules: 'recursive'
- name: 'Restore sysroot cache'
if: ${{ env.FF_VERSION == 'master' }}
id: sysroot-cache
uses: actions/cache@v4
with:
path: |
/tmp/winsdk
/tmp/msvcrt-dev
key: sysroot-${{ env.TARGET_OS }}${{ vars.WINSDKVER }}-vc${{ vars.VCVER }}${{ env.CONFIG_SUFFIX }}
- name: Create Build Environment
if: ${{ env.FF_VERSION == 'master' }}
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
if: ${{ env.FF_VERSION == 'master' }}
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export WindowsSdkDir=${WINDOWSSDKDIR}
export WindowsSDKVersion=$(cat ${WINDOWSSDKDIR}/.version)
export V=1
USE_TOOLCHAIN=clang-${LLVM_VER:-$LLVM_VER_DEFAULT} ./avbuild.sh $TARGET_OS "x86 x64"
- name: Make SDK
if: ${{ env.FF_VERSION == 'master' }}
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
if: ${{ env.FF_VERSION == 'master' }}
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-lavfilters
path: ffmpeg-*.tar.xz
Windows_clang:
runs-on: ubuntu-latest
env:
TARGET_OS: ${{ matrix.target }}
COMPILER: clang
VCDIR: '/tmp/msvcrt-dev'
WINDOWSSDKDIR: '/tmp/winsdk'
PKG_CONFIG_PATH_MFX: '/tmp/dep/ClangCL/lib/pkgconfig'
AMF_DIR: "/tmp/dep/include"
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite]
target: [windows-desktop]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: 'Restore sysroot cache'
id: sysroot-cache
uses: actions/cache@v4
with:
path: |
/tmp/winsdk
/tmp/msvcrt-dev
key: sysroot-${{ env.TARGET_OS }}${{ vars.WINSDKVER }}-vc${{ vars.VCVER }}
- name: Create Build Environment
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export WindowsSdkDir=${WINDOWSSDKDIR}
export WindowsSDKVersion=$(cat ${WINDOWSSDKDIR}/.version)
USE_TOOLCHAIN=clang-${LLVM_VER:-$LLVM_VER_DEFAULT} ./avbuild.sh $TARGET_OS "arm64-clang-cl-${LLVM_VER:-$LLVM_VER_DEFAULT} arm x86 x64"
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
VCRT120_clang:
runs-on: ubuntu-latest
env:
TARGET_OS: windows-desktop
COMPILER: 'clang-vcrt120'
VCDIR: '/tmp/msvcrt-dev/120'
WINDOWSSDKDIR: '/tmp/winsdk'
AMF_DIR: "/tmp/dep/include"
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: 'Restore sysroot cache'
id: sysroot-cache
uses: actions/cache@v4
with:
path: |
/tmp/winsdk
/tmp/msvcrt-dev
key: sysroot-${{ env.TARGET_OS }}${{ vars.WINSDKVER }}-vc${{ vars.VCVER }}
- name: Create Build Environment
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export WindowsSdkDir=${WINDOWSSDKDIR}
export WindowsSDKVersion=$(cat ${WINDOWSSDKDIR}/.version)
USE_TOOLCHAIN=clang-${LLVM_VER:-$LLVM_VER_DEFAULT} ./avbuild.sh $TARGET_OS "x86 x64"
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}-vcrt120
path: ffmpeg-*.tar.xz
MinGW_GCC:
runs-on: ubuntu-latest
env:
TARGET_OS: mingw
COMPILER: gcc
PKG_CONFIG_PATH_MFX: "/tmp/dep/MinGW/lib/pkgconfig"
AMF_DIR: "/tmp/dep/include"
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Create Build Environment
shell: bash
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
./avbuild.sh $TARGET_OS
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
Linux_clang:
runs-on: ubuntu-latest
env:
TARGET_OS: linux
COMPILER: clang
PKG_CONFIG_PATH_MFX: "/tmp/dep/linux64-gcc/lib/pkgconfig" # TODO:
AMF_DIR: "/tmp/dep/include"
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [default,lite,lite-lto]
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: 'Restore sysroot cache'
id: sysroot-cache
uses: actions/cache@v4
with:
path: /tmp/sysroot
key: sysroot-${{ env.TARGET_OS }}-${{ vars.LINUX_SYSROOT_ID }}
- name: Create Build Environment
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: |
sudo apt remove -y libc++1-14 libc++abi1-14 libunwind-14 python3-lldb-14 # conflict with latest llvm
./tools/ci-before-build.sh
- name: Configure and Build
shell: bash
run: |
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export SYSROOT=/tmp/sysroot
export USER_OPT="--enable-wolfssl"
USE_TOOLCHAIN=clang-${LLVM_VER:-$LLVM_VER_DEFAULT} ./avbuild.sh linux "amd64 arm64 armhf"
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
Android:
runs-on: macos-latest
env:
TARGET_OS: android
CONFIG_SUFFIX: -${{ matrix.config }}
strategy:
fail-fast: false
matrix:
config: [lite,lite-lto]
steps:
- uses: actions/checkout@v4
- name: 'Restore sysroot cache'
id: sysroot-cache
uses: actions/cache@v4
with:
path: /tmp/sysroot
key: sysroot-${{ env.TARGET_OS }}-${{ vars.LINUX_SYSROOT_ID }}
- name: Create Build Environment
shell: bash
env:
SYSROOT_CACHE_HIT: ${{ steps.sysroot-cache.outputs.cache-hit }}
run: ./tools/ci-before-build.sh
- name: Configure and Build 32bit
shell: bash
run: |
export ANDROID_NDK=$ANDROID_HOME/ndk/25.2.9519653 # ndk25, api19
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export USER_OPT="--enable-wolfssl"
./avbuild.sh ${TARGET_OS} "armv7 x86"
mv sdk-android-clang{,32}
- name: Configure and Build 64bit
shell: bash
run: |
export ANDROID_NDK=$ANDROID_NDK_LATEST_HOME
export FFSRC=$PWD/ffmpeg-${FF_VERSION}
export USER_OPT="--enable-wolfssl"
./avbuild.sh ${TARGET_OS} "arm64 x86_64"
rsync -auv --ignore-existing sdk-android-clang{32/*,}
rm -rf sdk-android-clang32
- name: Make SDK
shell: bash
run: ./tools/ci-after-build.sh
- name: Archieve SDK
uses: actions/upload-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-${{ env.TARGET_OS }}-${{ matrix.config }}
path: ffmpeg-*.tar.xz
Upload:
runs-on: ubuntu-latest
needs: [VS2022]
steps:
- name: Download vs2022 desktop
uses: actions/download-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-windows-desktop-VS2022default
- name: Download vs2022 desktop lite
uses: actions/download-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-windows-desktop-VS2022lite
- name: Download vs2022 LTL desktop lite
uses: actions/download-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-windows-desktop-VS2022ltllite
- name: Download vs2022 LTL desktop
uses: actions/download-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-windows-desktop-VS2022ltldefault
- name: Download vs2022 uwp lite
uses: actions/download-artifact@v4
with:
name: ffmpeg-${{ env.FF_VERSION }}-uwp-VS2022lite
- name: Upload to SourceForge
if: (github.event_name != 'pull_request')
shell: bash
run: |
sudo apt update
sudo apt install -y sshpass
FFV=${{ env.FF_VERSION }}
for f in `ls ffmpeg-*.7z`; do
OS=${f%%-vs*}
OS=${OS##*${FFV}-}
sshpass -p $SF_PW_MAPPED scp -o StrictHostKeyChecking=no $f $SF_USER_MAPPED,[email protected]:/home/frs/project/a/av/avbuild/$OS
done