From 0dd38a5b5016cef3355a9da1f9a639cca979af36 Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Wed, 23 Mar 2022 19:57:03 +0100 Subject: [PATCH] Update ffmpeg.yml --- .github/workflows/ffmpeg.yml | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml index 37881ae..a6dc5d0 100644 --- a/.github/workflows/ffmpeg.yml +++ b/.github/workflows/ffmpeg.yml @@ -18,7 +18,6 @@ env: jobs: liboggvorbis: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -69,7 +68,6 @@ jobs: path: dist/liboggvorbis.tgz libvpl: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -110,7 +108,6 @@ jobs: path: dist/libvpl.tgz libsvtav1: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -148,7 +145,6 @@ jobs: path: dist/libsvtav1.tgz libsnappy: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -191,7 +187,6 @@ jobs: path: dist/libsnappy.tgz libvpx: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -229,7 +224,6 @@ jobs: path: dist/libvpx.tgz libmp3lame: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -257,7 +251,6 @@ jobs: path: dist/libmp3lame.tgz libzimg: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -334,7 +327,6 @@ jobs: path: dist/libopus.tgz libx264: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -372,7 +364,6 @@ jobs: path: dist/libx264.tgz libfdkaac: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -411,7 +402,7 @@ jobs: ffmpeg: 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: - name: Set up MSYS2 uses: msys2/setup-msys2@v2 @@ -451,7 +442,7 @@ jobs: run: | call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" 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 uses: actions/upload-artifact@v3 with: