From 890a31b49baf019809106acf37f90533d3e2194f Mon Sep 17 00:00:00 2001 From: Daniel Stankewitz Date: Thu, 7 Mar 2024 07:50:35 +0100 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 62 +++++++------------------------------- 1 file changed, 11 insertions(+), 51 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 306b681..45ee066 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,7 +14,7 @@ on: type: type: choice required: true - default: 'static' + default: 'shared' description: Type options: - static @@ -32,7 +32,7 @@ on: ffmpegRef: type: string required: true - default: 'release/5.1' + default: 'release/6.1' description: 'FFmpeg refId' workflow_call: @@ -52,60 +52,20 @@ on: env: vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - COMPONENTS: " " + COMPONENTS: "--enable-libvpl --enable-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libvpx --enable-libopus --enable-libkvazaar" + #--enable-libvorbis NASM_EXECUTABLE: nasm cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }} + variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared --build-suffix=-voukoderpro' }} msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} jobs: - ffmpeg: + libkvazaar: runs-on: ${{ inputs.system }} - needs: [] steps: - - name: Set up MSYS2 - uses: msys2/setup-msys2@v2 + - uses: actions/checkout@v3 + - uses: ./.github/actions/libkvazaar with: - install: base-devel binutils mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git config --global user.email "daniel.stankewitz@gmail.com" - git config --global user.name "Daniel Stankewitz" - - name: Checkout patches - uses: actions/checkout@v3.0.0 - - name: Checkout FFmpeg - uses: actions/checkout@v3.0.0 - with: - repository: FFmpeg/FFmpeg.git - ref: ${{ inputs.ffmpegRef }} - path: ffmpeg - - name: Checkout NvEnc - uses: actions/checkout@v3.0.0 - with: - repository: FFmpeg/nv-codec-headers - ref: master - path: nvenc - - name: Checkout AMF - uses: actions/checkout@v3.0.0 - with: - repository: GPUOpen-LibrariesAndSDKs/AMF - ref: master - path: amf - - name: Set up artifacts - uses: actions/download-artifact@v3 - with: - path: build_artifacts - - name: Build FFmpeg - shell: cmd - 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 ../amd-av1-amf.patch ; git apply --ignore-whitespace ../nvidia-av1-nvenc.patch ; git apply --ignore-whitespace --verbose ../libfdkaac-dynlib-5.1.patch ; sed -i "s/#define X264_API_IMPORTS 1/\/\/#define X264_API_IMPORTS 1/g" libavcodec/libx264.c ; cd ../build ; for file in `ls ../build_artifacts/**/*.tgz`; do tar -xzf $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 --extra-libs=Ole32.lib --extra-libs=Advapi32.lib --disable-doc ${{ env.variant }} --enable-runtime-cpudetect --enable-w32threads --enable-gpl ${{ env.COMPONENTS }} ; make -j 2 ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib" ; done ; rm -rf fdk-aac.lib cmake pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz *' - - name: Publish FFmpeg artifacts - uses: actions/upload-artifact@v3 - with: - name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build - path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz + refId: v2.3.0 + config: ${{ inputs.config }} +