Update ffmpeg.yml
This commit is contained in:
parent
f0091d2f75
commit
67f7b7ec28
34
.github/workflows/ffmpeg.yml
vendored
34
.github/workflows/ffmpeg.yml
vendored
@ -18,6 +18,7 @@ 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
|
||||||
@ -68,6 +69,7 @@ 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
|
||||||
@ -108,6 +110,7 @@ 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
|
||||||
@ -145,6 +148,7 @@ 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
|
||||||
@ -187,6 +191,7 @@ 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
|
||||||
@ -224,6 +229,7 @@ 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
|
||||||
@ -251,6 +257,7 @@ 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
|
||||||
@ -288,6 +295,7 @@ jobs:
|
|||||||
path: dist/libzimg.tgz
|
path: dist/libzimg.tgz
|
||||||
|
|
||||||
libopus:
|
libopus:
|
||||||
|
if: ${{ false }}
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
@ -327,6 +335,7 @@ 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
|
||||||
@ -364,6 +373,7 @@ 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
|
||||||
@ -402,7 +412,7 @@ jobs:
|
|||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus,liboggvorbis,libx264,libfdkaac]
|
#needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus,liboggvorbis,libx264,libfdkaac]
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
@ -421,16 +431,16 @@ jobs:
|
|||||||
path: ffmpeg
|
path: ffmpeg
|
||||||
- name: Checkout NvEnc
|
- name: Checkout NvEnc
|
||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
# with:
|
||||||
repository: FFmpeg/nv-codec-headers
|
# repository: FFmpeg/nv-codec-headers
|
||||||
ref: sdk/9.1
|
# ref: sdk/9.1
|
||||||
path: nvenc
|
# path: nvenc
|
||||||
- name: Checkout AMF
|
#- name: Checkout AMF
|
||||||
uses: actions/checkout@v3.0.0
|
# uses: actions/checkout@v3.0.0
|
||||||
with:
|
# with:
|
||||||
repository: GPUOpen-LibrariesAndSDKs/AMF
|
# repository: GPUOpen-LibrariesAndSDKs/AMF
|
||||||
ref: master
|
# ref: master
|
||||||
path: amf
|
# path: amf
|
||||||
- name: Checkout patches
|
- name: Checkout patches
|
||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
with:
|
||||||
@ -443,7 +453,7 @@ jobs:
|
|||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply ../patches/0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; cd ..' || true
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ffmpeg ; git apply --verbose ../patches/0003-dynamic-loading-of-shared-fdk-aac-library-5.0.patch ; cd ..' || true
|
||||||
md build dist
|
md build dist
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $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 build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $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 *'
|
||||||
- name: Publish FFmpeg artifacts
|
- name: Publish FFmpeg artifacts
|
||||||
|
Loading…
x
Reference in New Issue
Block a user