Update ffmpeg.yml
This commit is contained in:
parent
87b9012ccd
commit
0dd38a5b50
13
.github/workflows/ffmpeg.yml
vendored
13
.github/workflows/ffmpeg.yml
vendored
@ -18,7 +18,6 @@ env:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
liboggvorbis:
|
liboggvorbis:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -69,7 +68,6 @@ jobs:
|
|||||||
path: dist/liboggvorbis.tgz
|
path: dist/liboggvorbis.tgz
|
||||||
|
|
||||||
libvpl:
|
libvpl:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -110,7 +108,6 @@ jobs:
|
|||||||
path: dist/libvpl.tgz
|
path: dist/libvpl.tgz
|
||||||
|
|
||||||
libsvtav1:
|
libsvtav1:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -148,7 +145,6 @@ jobs:
|
|||||||
path: dist/libsvtav1.tgz
|
path: dist/libsvtav1.tgz
|
||||||
|
|
||||||
libsnappy:
|
libsnappy:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -191,7 +187,6 @@ jobs:
|
|||||||
path: dist/libsnappy.tgz
|
path: dist/libsnappy.tgz
|
||||||
|
|
||||||
libvpx:
|
libvpx:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -229,7 +224,6 @@ jobs:
|
|||||||
path: dist/libvpx.tgz
|
path: dist/libvpx.tgz
|
||||||
|
|
||||||
libmp3lame:
|
libmp3lame:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -257,7 +251,6 @@ jobs:
|
|||||||
path: dist/libmp3lame.tgz
|
path: dist/libmp3lame.tgz
|
||||||
|
|
||||||
libzimg:
|
libzimg:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -334,7 +327,6 @@ jobs:
|
|||||||
path: dist/libopus.tgz
|
path: dist/libopus.tgz
|
||||||
|
|
||||||
libx264:
|
libx264:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -372,7 +364,6 @@ jobs:
|
|||||||
path: dist/libx264.tgz
|
path: dist/libx264.tgz
|
||||||
|
|
||||||
libfdkaac:
|
libfdkaac:
|
||||||
if: ${{ false }}
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -411,7 +402,7 @@ jobs:
|
|||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
needs: [libopus]#,libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,liboggvorbis,libx264,libfdkaac]
|
needs: [libopus,libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,liboggvorbis,libx264,libfdkaac]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
@ -451,7 +442,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
md build dist
|
md build dist
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace --verbose ../patches/0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzvf $file; done ; rm bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; ls -laR .. ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; ls -laR .. ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ env.msysConfig }}.tar.gz *'
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --ignore-whitespace --verbose ../patches/0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzvf $file; done ; rm -f bin/*.dll ; cd ../nvenc ; make PREFIX=../build install ; cp -a ../amf/amf/public/include ../build/include/AMF ; cd ../ffmpeg ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ${{ env.switches }} ; make ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; ls -laR .. ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; ls -laR .. ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ env.msysConfig }}.tar.gz *'
|
||||||
- name: Publish FFmpeg artifacts
|
- name: Publish FFmpeg artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user