diff --git a/.github/actions/libfdkaac/action.yml b/.github/actions/libfdkaac/action.yml new file mode 100644 index 0000000..c6d8cfa --- /dev/null +++ b/.github/actions/libfdkaac/action.yml @@ -0,0 +1,51 @@ +name: libfdkaac + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout FDK AAC + uses: actions/checkout@v3 + with: + repository: mstorsjo/fdk-aac + ref: master + path: fdkaac + - name: Check cache + id: libfdkaac-cache + uses: actions/cache@v3 + with: + path: dist + key: libfdkaac-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('fdkaac') }} + - name: Set up MSYS2 + if: steps.libfdkaac-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build FDK AAC + if: steps.libfdkaac-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd fdkaac ; autoreconf -fiv ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared --disable-static ; make ; make install ; cd ../build ; tar czf ../dist/libfdkaac.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libfdkaac-${{ inputs.env }}-${{ inputs.config }} + path: dist/libfdkaac.tgz \ No newline at end of file diff --git a/.github/actions/libmp3lame/action.yml b/.github/actions/libmp3lame/action.yml new file mode 100644 index 0000000..52d0c18 --- /dev/null +++ b/.github/actions/libmp3lame/action.yml @@ -0,0 +1,32 @@ +name: libmp3lame + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up MSYS2 + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn + path-type: inherit + - name: Build LAME + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/trunk/lame@6474 lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz * + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libmp3lame-${{ inputs.env }}-${{ inputs.config }} + path: dist/libmp3lame.tgz \ No newline at end of file diff --git a/.github/actions/liboggvorbis/action.yml b/.github/actions/liboggvorbis/action.yml new file mode 100644 index 0000000..751c743 --- /dev/null +++ b/.github/actions/liboggvorbis/action.yml @@ -0,0 +1,67 @@ +name: liboggvorbis + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout Ogg + uses: actions/checkout@v3 + with: + repository: xiph/ogg + ref: master + path: ogg + - name: Checkout Vorbis + uses: actions/checkout@v3.0.0 + with: + repository: xiph/vorbis + ref: master + path: vorbis + - name: Check cache + id: liboggvorbis-cache + uses: actions/cache@v3 + with: + path: dist + key: liboggvorbis-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('ogg') }}-${{ hashFiles('vorbis') }} + - name: Set up MSYS2 + if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake + path-type: inherit + - name: Build Ogg + if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install' + - name: Build Vorbis + if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: liboggvorbis-${{ inputs.env }}-${{ inputs.config }} + path: dist/liboggvorbis.tgz \ No newline at end of file diff --git a/.github/actions/libopus/action.yml b/.github/actions/libopus/action.yml new file mode 100644 index 0000000..a271156 --- /dev/null +++ b/.github/actions/libopus/action.yml @@ -0,0 +1,54 @@ +name: libopus + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout OPUS + uses: actions/checkout@v3.0.0 + with: + repository: xiph/opus + ref: master + path: opus + - name: Check cache + id: libopus-cache + uses: actions/cache@v3 + with: + path: dist + key: libopus-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('opus') }} + - name: Set up MSYS2 + if: steps.libopus-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build OPUS + if: steps.libopus-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + cd opus\win32\VS2015 + MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj + D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ inputs.config }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libopus-${{ inputs.env }}-${{ inputs.config }} + path: dist/libopus.tgz \ No newline at end of file diff --git a/.github/actions/libsnappy/action.yml b/.github/actions/libsnappy/action.yml new file mode 100644 index 0000000..a3066d8 --- /dev/null +++ b/.github/actions/libsnappy/action.yml @@ -0,0 +1,56 @@ +name: libsnappy + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout Snappy + uses: actions/checkout@v3 + with: + repository: google/snappy + ref: "1.1.8" + path: snappy + - name: Check cache + id: libsnappy-cache + uses: actions/cache@v3 + with: + path: dist + key: libsnappy-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('snappy') }} + - name: Set up MSYS2 + if: steps.libsnappy-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build Snappy + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + cd snappy + md work + cd work + cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF + MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" Snappy.sln + D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ inputs.config }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libsnappy-${{ inputs.env }}-${{ inputs.config }} + path: dist/libsnappy.tgz \ No newline at end of file diff --git a/.github/actions/libsvtav1/action.yml b/.github/actions/libsvtav1/action.yml new file mode 100644 index 0000000..abb0b56 --- /dev/null +++ b/.github/actions/libsvtav1/action.yml @@ -0,0 +1,51 @@ +name: libsvtav1 + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout SVT AV1 + uses: actions/checkout@v3 + with: + repository: AOMediaCodec/SVT-AV1 + ref: master + path: svtav1 + - name: Check cache + id: libsvtav1-cache + uses: actions/cache@v3 + with: + path: dist + key: libsvtav1-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('svtav1') }} + - name: Set up MSYS2 + if: steps.libsvtav1-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build SVT AV1 + if: steps.libsvtav1-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd svtav1/Build/windows ; ./build.bat 2022 ${{ inputs.config }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ inputs.config }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libsvtav1-${{ inputs.env }}-${{ inputs.config }} + path: dist/libsvtav1.tgz \ No newline at end of file diff --git a/.github/actions/libvpx/action.yml b/.github/actions/libvpx/action.yml new file mode 100644 index 0000000..227fbe0 --- /dev/null +++ b/.github/actions/libvpx/action.yml @@ -0,0 +1,46 @@ +name: libvpx + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + git clone https://github.com/webmproject/libvpx.git vpx + - name: Check cache + id: libvpx-cache + uses: actions/cache@v3 + with: + path: dist + key: libvpx-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('vpx') }} + - name: Set up MSYS2 + if: steps.libvpx-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build LibVpx + if: steps.libvpx-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vpx ; ./configure --prefix=../build --target=x86_64-win64-vs17 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests --disable-postproc ; make -j ; make install ; mv ../build/lib/x64/vpxmd.lib ../build/lib/vpx.lib ; rm -rf ../build/lib/x64 ; cd ../build ; tar czf ../dist/libvpx.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libvpx-${{ inputs.env }}-${{ inputs.config }} + path: dist/libvpx.tgz \ No newline at end of file diff --git a/.github/actions/libx264/action.yml b/.github/actions/libx264/action.yml new file mode 100644 index 0000000..5276b15 --- /dev/null +++ b/.github/actions/libx264/action.yml @@ -0,0 +1,51 @@ +name: libx264 + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout X264 + uses: actions/checkout@v3 + with: + repository: mirror/x264 + ref: master + path: x264 + - name: Check cache + id: libx264-cache + uses: actions/cache@v3 + with: + path: dist + key: libx264-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x264') }} + - name: Set up MSYS2 + if: steps.libx264-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build X264 + if: steps.libx264-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libx264-${{ inputs.env }}-${{ inputs.config }} + path: dist/libx264.tgz \ No newline at end of file diff --git a/.github/actions/libx265-10/action.yml b/.github/actions/libx265-10/action.yml new file mode 100644 index 0000000..0495de4 --- /dev/null +++ b/.github/actions/libx265-10/action.yml @@ -0,0 +1,48 @@ +name: libx265-10 + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Checkout X265 + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + git clone -b Release_3.5 https://github.com/videolan/x265.git x265 + - name: Check cache + id: libx26510-cache + uses: actions/cache@v3 + with: + path: dist + key: libx265-10-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} + - name: Set up MSBuild + if: steps.libx26510-cache.outputs.cache-hit != 'true' + uses: microsoft/setup-msbuild@v1.1 + - name: Set up NASM + if: steps.libx26510-cache.outputs.cache-hit != 'true' + uses: ilammy/setup-nasm@v1.2.1 + - name: Build X265 (10 bit) + if: steps.libx26510-cache.outputs.cache-hit != 'true' + shell: cmd + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build dist + cd x265/build/vc15-x86_64 + md work + cd work + cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF + MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj + move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_10bit.lib + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: x265_10bit-${{ inputs.env }}-${{ inputs.config }} + path: dist/x265_10bit.lib \ No newline at end of file diff --git a/.github/actions/libx265-12/action.yml b/.github/actions/libx265-12/action.yml new file mode 100644 index 0000000..93b9eac --- /dev/null +++ b/.github/actions/libx265-12/action.yml @@ -0,0 +1,52 @@ +name: libx265-12 + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Checkout X265 + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + git clone -b Release_3.5 https://github.com/videolan/x265.git x265 + - name: Check cache + id: libx26512-cache + uses: actions/cache@v3 + with: + path: dist + key: libx265-12-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} + - name: Set up MSBuild + if: steps.libx26512-cache.outputs.cache-hit != 'true' + uses: microsoft/setup-msbuild@v1.1 + - name: Set up NASM + if: steps.libx26512-cache.outputs.cache-hit != 'true' + uses: ilammy/setup-nasm@v1.2.1 + - name: Build X265 (12 bit) + if: steps.libx26512-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build dist + cd x265/build/vc15-x86_64 + md work + cd work + cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON + MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj + move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_12bit.lib + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: x265_12bit-${{ inputs.env }}-${{ inputs.config }} + path: dist/x265_12bit.lib \ No newline at end of file diff --git a/.github/actions/libx265/action.yml b/.github/actions/libx265/action.yml new file mode 100644 index 0000000..dfa9ab2 --- /dev/null +++ b/.github/actions/libx265/action.yml @@ -0,0 +1,69 @@ +name: libx265 + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Checkout X265 + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + git clone -b Release_3.5 https://github.com/videolan/x265.git x265 + - name: Check cache + id: libx265-cache + uses: actions/cache@v3 + with: + path: di + key: libx265-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} + - name: Set up MSYS2 + if: steps.libx265-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake + path-type: inherit + - name: Set up MSBuild + if: steps.libx265-cache.outputs.cache-hit != 'true' + uses: microsoft/setup-msbuild@v1.1 + - name: Set up NASM + if: steps.libx265-cache.outputs.cache-hit != 'true' + uses: ilammy/setup-nasm@v1.2.1 + - name: Set up dependant libs + if: steps.libx265-cache.outputs.cache-hit != 'true' + uses: actions/download-artifact@v3 + with: + path: build + - name: Build X265 + if: steps.libx265-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md di dist dist\include dist\lib dist\lib\pkgconfig + cd x265/build/vc15-x86_64 + md work + cd work + cmake -G "Visual Studio 17 2022" ..\..\..\source -DCMAKE_INSTALL_PREFIX=..\..\..\..\build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="libx265_10bit.lib;libx265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON + MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj + cp x265.pc ..\..\..\..\dist\lib\pkgconfig\x265.pc + move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\ + move x265_config.h ..\..\..\..\dist\include\ + cd ..\..\..\.. + "${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ inputs.env }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ inputs.env }}-${{ inputs.config }}\x265_12bit.lib + copy x265\source\x265.h dist\include\ + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libx265-${{ inputs.env }}-${{ inputs.config }} + path: di/libx265.tgz \ No newline at end of file diff --git a/.github/actions/libzimg/action.yml b/.github/actions/libzimg/action.yml new file mode 100644 index 0000000..5381737 --- /dev/null +++ b/.github/actions/libzimg/action.yml @@ -0,0 +1,52 @@ +name: libzimg + +inputs: + env: + type: string + required: true + config: + type: string + required: true + +runs: + using: "composite" + steps: + - name: Set up GIT + shell: cmd + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout ZIMG + uses: actions/checkout@v3.0.0 + with: + repository: sekrit-twc/zimg + ref: release-2.9.2 + path: zimg + - name: Check cache + id: libzimg-cache + uses: actions/cache@v3 + with: + path: dist + key: libzimg-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('zimg') }} + - name: Set up MSYS2 + if: steps.libzimg-cache.outputs.cache-hit != 'true' + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Build ZIMG + if: steps.libzimg-cache.outputs.cache-hit != 'true' + shell: cmd + env: + vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ + cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} + msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ inputs.config }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libzimg-${{ inputs.env }}-${{ inputs.config }} + path: dist/libzimg.tgz \ No newline at end of file diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml index 6a09e31..9aa799e 100644 --- a/.github/workflows/ffmpeg.yml +++ b/.github/workflows/ffmpeg.yml @@ -96,64 +96,115 @@ jobs: config: ${{ inputs.config }} liboggvorbis: - uses: ./.github/workflows/liboggvorbis.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + if: ${{ inputs.source == 'cartwheel' }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/liboggvorbis + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libsvtav1: - uses: ./.github/workflows/libsvtav1.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + if: ${{ inputs.source == 'cartwheel' }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libsvtav1 + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libsnappy: - uses: ./.github/workflows/libsnappy.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libsnappy + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libvpx: - uses: ./.github/workflows/libvpx.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libvpx + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libmp3lame: - uses: ./.github/workflows/libmp3lame.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libmp3lame + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libzimg: - uses: ./.github/workflows/libzimg.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libzimg + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libopus: - uses: ./.github/workflows/libopus.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libopus + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libfdkaac: - uses: ./.github/workflows/libfdkaac.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libfdkaac + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libx264: - uses: ./.github/workflows/libx264.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libfdkaac + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} + + libx265-12: + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libx265-12 + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} + + libx265-10: + runs-on: ${{ inputs.env }} + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libx265-10 + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} libx265: - uses: ./.github/workflows/libx265.yml - with: - env: ${{ inputs.env }} - config: ${{ inputs.config }} + runs-on: ${{ inputs.env }} + needs: [libx265-12,libx265-10] + steps: + - uses: actions/checkout@v3 + - uses: ./.github/actions/libx265 + with: + env: ${{ inputs.env }} + config: ${{ inputs.config }} cartwheel: runs-on: ${{ inputs.env }} diff --git a/.github/workflows/libfdkaac.yml b/.github/workflows/libfdkaac.yml deleted file mode 100644 index 1eda243..0000000 --- a/.github/workflows/libfdkaac.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: libfdkaac - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - libfdkaac: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout FDK AAC - uses: actions/checkout@v3.0.0 - with: - repository: mstorsjo/fdk-aac - ref: master - path: fdkaac - - name: Check cache - id: libfdkaac-cache - uses: actions/cache@v3 - with: - path: dist - key: libfdkaac-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('fdkaac') }} - - name: Set up MSYS2 - if: steps.libfdkaac-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build FDK AAC - if: steps.libfdkaac-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd fdkaac ; autoreconf -fiv ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared --disable-static ; make ; make install ; cd ../build ; tar czf ../dist/libfdkaac.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libfdkaac-${{ inputs.env }}-${{ inputs.config }} - path: dist/libfdkaac.tgz \ No newline at end of file diff --git a/.github/workflows/libmp3lame.yml b/.github/workflows/libmp3lame.yml deleted file mode 100644 index 4795cf1..0000000 --- a/.github/workflows/libmp3lame.yml +++ /dev/null @@ -1,41 +0,0 @@ -name: libmp3lame - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - libmp3lame: - runs-on: ${{ inputs.env }} - steps: - - name: Set up MSYS2 - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm svn - path-type: inherit - - name: Build LAME - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'svn co https://svn.code.sf.net/p/lame/svn/trunk/lame@6474 lame ; cd lame ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --enable-nasm --disable-frontend --disable-shared --enable-static ; make -j ; make install ; cd ../build ; tar czf ../dist/libmp3lame.tgz * - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libmp3lame-${{ inputs.env }}-${{ inputs.config }} - path: dist/libmp3lame.tgz \ No newline at end of file diff --git a/.github/workflows/liboggvorbis.yml b/.github/workflows/liboggvorbis.yml deleted file mode 100644 index 79f8981..0000000 --- a/.github/workflows/liboggvorbis.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: liboggvorbis - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - liboggvorbis: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout Ogg - uses: actions/checkout@v3.0.0 - with: - repository: xiph/ogg - ref: master - path: ogg - - name: Checkout Vorbis - uses: actions/checkout@v3.0.0 - with: - repository: xiph/vorbis - ref: master - path: vorbis - - name: Check cache - id: liboggvorbis-cache - uses: actions/cache@v3 - with: - path: dist - key: liboggvorbis-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('ogg') }}-${{ hashFiles('vorbis') }} - - name: Set up MSYS2 - if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake - path-type: inherit - - name: Build Ogg - if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd ogg ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install' - - name: Build Vorbis - if: steps.liboggvorbis-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vorbis ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=$(realpath ../build) --disable-shared ; make -j ; make install ; sed -i '/^Libs\.private.*/d' ../build/lib/pkgconfig/vorbis.pc ; cd ../build ; tar czf ../dist/liboggvorbis.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: liboggvorbis-${{ inputs.env }}-${{ inputs.config }} - path: dist/liboggvorbis.tgz \ No newline at end of file diff --git a/.github/workflows/libopus.yml b/.github/workflows/libopus.yml deleted file mode 100644 index cba46c3..0000000 --- a/.github/workflows/libopus.yml +++ /dev/null @@ -1,62 +0,0 @@ -name: libopus - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} - -jobs: - libopus: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout OPUS - uses: actions/checkout@v3.0.0 - with: - repository: xiph/opus - ref: master - path: opus - - name: Check cache - id: libopus-cache - uses: actions/cache@v3 - with: - path: dist - key: libopus-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('opus') }} - - name: Set up MSYS2 - if: steps.libopus-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build OPUS - if: steps.libopus-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - cd opus\win32\VS2015 - MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:Platform=x64 /property:PlatformToolset=v143 opus.vcxproj - D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ inputs.config }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/include build/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$(realpath ../../../build)#g" build/lib/pkgconfig/opus.pc ; sed -i "s/@exec_prefix@/\$\{prefix\}/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@libdir@/\$\{prefix\}\/lib/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@includedir@/\$\{prefix\}\/include/g" build/lib/pkgconfig/opus.pc ; sed -i "s/@LIBM@//g" build/lib/pkgconfig/opus.pc; sed -i "s/@VERSION@/2.0.0/g" build/lib/pkgconfig/opus.pc ; cd build ; tar czf ../dist/libopus.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libopus-${{ inputs.env }}-${{ inputs.config }} - path: dist/libopus.tgz \ No newline at end of file diff --git a/.github/workflows/libsnappy.yml b/.github/workflows/libsnappy.yml deleted file mode 100644 index 1aae08f..0000000 --- a/.github/workflows/libsnappy.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: libsnappy - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} - -jobs: - libsnappy: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout Snappy - uses: actions/checkout@v3.0.0 - with: - repository: google/snappy - ref: "1.1.8" - path: snappy - - name: Check cache - id: libsnappy-cache - uses: actions/cache@v3 - with: - path: dist - key: libsnappy-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('snappy') }} - - name: Set up MSYS2 - if: steps.libsnappy-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build Snappy - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - cd snappy - md work - cd work - cmake -G "Visual Studio 17 2022" .. -DCMAKE_INSTALL_PREFIX=..\..\build -DBUILD_SHARED_LIBS=OFF -DSNAPPY_BUILD_TESTS=OFF - MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" Snappy.sln - D:\a\_temp\setup-msys2\msys2.cmd -c 'cp ${{ inputs.config }}/snappy.lib ../../build/lib/snappy.lib ; cp ../snappy.h ../snappy-c.h ../../build/include/ ; cd ../../build ; tar czf ../dist/libsnappy.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libsnappy-${{ inputs.env }}-${{ inputs.config }} - path: dist/libsnappy.tgz \ No newline at end of file diff --git a/.github/workflows/libsvtav1.yml b/.github/workflows/libsvtav1.yml deleted file mode 100644 index 4ff2640..0000000 --- a/.github/workflows/libsvtav1.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: libsvtav1 - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - libsvtav1: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout SVT AV1 - uses: actions/checkout@v3.0.0 - with: - repository: AOMediaCodec/SVT-AV1 - ref: master - path: svtav1 - - name: Check cache - id: libsvtav1-cache - uses: actions/cache@v3 - with: - path: dist - key: libsvtav1-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('svtav1') }} - - name: Set up MSYS2 - if: steps.libsvtav1-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build SVT AV1 - if: steps.libsvtav1-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd svtav1/Build/windows ; ./build.bat 2022 ${{ inputs.config }} static ; cp -r ../../Source/API ../../../build/include/svt-av1 ; cp ../../Bin/${{ inputs.config }}/SvtAv1Enc.lib ../../../build/lib/ ; cp SvtAv1Enc.pc ../../../build/lib/pkgconfig/ ; cd ../../../build ; tar czf ../dist/libsvtav1.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libsvtav1-${{ inputs.env }}-${{ inputs.config }} - path: dist/libsvtav1.tgz \ No newline at end of file diff --git a/.github/workflows/libvpx.yml b/.github/workflows/libvpx.yml deleted file mode 100644 index c1d4de0..0000000 --- a/.github/workflows/libvpx.yml +++ /dev/null @@ -1,54 +0,0 @@ -name: libvpx - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - libvpx: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git clone https://github.com/webmproject/libvpx.git vpx - - name: Check cache - id: libvpx-cache - uses: actions/cache@v3 - with: - path: dist - key: libvpx-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('vpx') }} - - name: Set up MSYS2 - if: steps.libvpx-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build LibVpx - if: steps.libvpx-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd vpx ; ./configure --prefix=../build --target=x86_64-win64-vs17 --enable-vp9-highbitdepth --disable-shared --disable-examples --disable-tools --disable-docs --disable-libyuv --disable-unit_tests --disable-postproc ; make -j ; make install ; mv ../build/lib/x64/vpxmd.lib ../build/lib/vpx.lib ; rm -rf ../build/lib/x64 ; cd ../build ; tar czf ../dist/libvpx.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libvpx-${{ inputs.env }}-${{ inputs.config }} - path: dist/libvpx.tgz \ No newline at end of file diff --git a/.github/workflows/libx264.yml b/.github/workflows/libx264.yml deleted file mode 100644 index d22bad5..0000000 --- a/.github/workflows/libx264.yml +++ /dev/null @@ -1,59 +0,0 @@ -name: libx264 - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - -jobs: - libx264: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout X264 - uses: actions/checkout@v3.0.0 - with: - repository: mirror/x264 - ref: master - path: x264 - - name: Check cache - id: libx264-cache - uses: actions/cache@v3 - with: - path: dist - key: libx264-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x264') }} - - name: Set up MSYS2 - if: steps.libx264-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build X264 - if: steps.libx264-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libx264-${{ inputs.env }}-${{ inputs.config }} - path: dist/libx264.tgz \ No newline at end of file diff --git a/.github/workflows/libx265.yml b/.github/workflows/libx265.yml deleted file mode 100644 index 4ed566a..0000000 --- a/.github/workflows/libx265.yml +++ /dev/null @@ -1,157 +0,0 @@ -name: libx265 - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} - -jobs: - libx265-12: - runs-on: ${{ inputs.env }} - steps: - - name: Checkout X265 - shell: cmd - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git clone -b Release_3.5 https://github.com/videolan/x265.git x265 - - name: Check cache - id: libx26512-cache - uses: actions/cache@v3 - with: - path: dist - key: libx265-12-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} - - name: Set up MSBuild - if: steps.libx26512-cache.outputs.cache-hit != 'true' - uses: microsoft/setup-msbuild@v1.1 - - name: Set up NASM - if: steps.libx26512-cache.outputs.cache-hit != 'true' - uses: ilammy/setup-nasm@v1.2.1 - - name: Build X265 (12 bit) - if: steps.libx26512-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build dist - cd x265/build/vc15-x86_64 - md work - cd work - cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DMAIN12=ON - MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj - move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_12bit.lib - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: x265_12bit-${{ inputs.env }}-${{ inputs.config }} - path: dist/x265_12bit.lib - - libx265-10: - runs-on: ${{ inputs.env }} - steps: - - name: Checkout X265 - shell: cmd - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git clone -b Release_3.5 https://github.com/videolan/x265.git x265 - - name: Check cache - id: libx26510-cache - uses: actions/cache@v3 - with: - path: dist - key: libx265-10-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} - - name: Set up MSBuild - if: steps.libx26510-cache.outputs.cache-hit != 'true' - uses: microsoft/setup-msbuild@v1.1 - - name: Set up NASM - if: steps.libx26510-cache.outputs.cache-hit != 'true' - uses: ilammy/setup-nasm@v1.2.1 - - name: Build X265 (10 bit) - if: steps.libx26510-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build dist - cd x265/build/vc15-x86_64 - md work - cd work - cmake -G "Visual Studio 17 2022" ..\..\..\source -DHIGH_BIT_DEPTH=ON -DEXPORT_C_API=OFF -DENABLE_SHARED=OFF -DENABLE_CLI=OFF - MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj - move ${{ inputs.config }}\x265-static.lib ..\..\..\..\dist\x265_10bit.lib - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: x265_10bit-${{ inputs.env }}-${{ inputs.config }} - path: dist/x265_10bit.lib - - libx265: - runs-on: ${{ inputs.env }} - needs: [libx265-12,libx265-10] - steps: - - name: Checkout X265 - shell: cmd - run: | - git config --global core.autocrlf false - git config --global core.eol lf - git clone -b Release_3.5 https://github.com/videolan/x265.git x265 - - name: Check cache - id: libx265-cache - uses: actions/cache@v3 - with: - path: di - key: libx265-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('x265') }} - - name: Set up MSYS2 - if: steps.libx265-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake - path-type: inherit - - name: Set up MSBuild - if: steps.libx265-cache.outputs.cache-hit != 'true' - uses: microsoft/setup-msbuild@v1.1 - - name: Set up NASM - if: steps.libx265-cache.outputs.cache-hit != 'true' - uses: ilammy/setup-nasm@v1.2.1 - - name: Set up dependant libs - if: steps.libx265-cache.outputs.cache-hit != 'true' - uses: actions/download-artifact@v3 - with: - path: build - - name: Build X265 - if: steps.libx265-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md di dist dist\include dist\lib dist\lib\pkgconfig - cd x265/build/vc15-x86_64 - md work - cd work - cmake -G "Visual Studio 17 2022" ..\..\..\source -DCMAKE_INSTALL_PREFIX=..\..\..\..\build -DENABLE_SHARED=OFF -DENABLE_CLI=OFF -DEXTRA_LIB="libx265_10bit.lib;libx265_12bit.lib" -DLINKED_10BIT=ON -DLINKED_12BIT=ON - MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" x265-static.vcxproj - cp x265.pc ..\..\..\..\dist\lib\pkgconfig\x265.pc - move ${{ inputs.config }}\x265-static.lib ..\..\..\..\build\ - move x265_config.h ..\..\..\..\dist\include\ - cd ..\..\..\.. - "${{ env.vsPath }}VC\Tools\MSVC\14.29.30133\bin\Hostx64\x64\lib.exe" /ignore:4006 /ignore:4221 /OUT:dist\lib\x265.lib build\x265-static.lib build\x265_10bit-${{ inputs.env }}-${{ inputs.config }}\x265_10bit.lib build\x265_12bit-${{ inputs.env }}-${{ inputs.config }}\x265_12bit.lib - copy x265\source\x265.h dist\include\ - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libx265-${{ inputs.env }}-${{ inputs.config }} - path: di/libx265.tgz \ No newline at end of file diff --git a/.github/workflows/libzimg.yml b/.github/workflows/libzimg.yml deleted file mode 100644 index a3be338..0000000 --- a/.github/workflows/libzimg.yml +++ /dev/null @@ -1,60 +0,0 @@ -name: libzimg - -on: - workflow_call: - inputs: - env: - type: string - required: true - default: 'windows-2022' - description: 'Environment' - - config: - type: string - required: true - default: 'debug' - description: 'Configuration' - -env: - vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\ - cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }} - msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }} - -jobs: - libzimg: - runs-on: ${{ inputs.env }} - steps: - - name: Set up GIT - run: | - git config --global core.autocrlf false - git config --global core.eol lf - - name: Checkout ZIMG - uses: actions/checkout@v3.0.0 - with: - repository: sekrit-twc/zimg - ref: release-2.9.2 - path: zimg - - name: Check cache - id: libzimg-cache - uses: actions/cache@v3 - with: - path: dist - key: libzimg-${{ inputs.env }}-${{ inputs.config }}-${{ hashFiles('zimg') }} - - name: Set up MSYS2 - if: steps.libzimg-cache.outputs.cache-hit != 'true' - uses: msys2/setup-msys2@v2 - with: - install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm - path-type: inherit - - name: Build ZIMG - if: steps.libzimg-cache.outputs.cache-hit != 'true' - shell: cmd - run: | - call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" - md build build\include build\lib build\lib\pkgconfig dist - D:\a\_temp\setup-msys2\msys2.cmd -c 'cd zimg ; ./autogen.sh ; ./configure --prefix=$(realpath ../build) ; cd _msvc/zimg ; MSBuild.exe /property:Configuration="${{ env.msbuildConfig }}" /property:ConfigurationType=StaticLibrary /property:PlatformToolset=v143 /property:Platform=x64 /property:WholeProgramOptimization=false zimg.vcxproj ; cp x64/${{ inputs.config }}/z.lib ../../../build/lib/zimg.lib ; cd ../.. ; cp src/zimg/api/zimg.h ../build/include/zimg.h ; cp zimg.pc ../build/lib/pkgconfig/zimg.pc ; cd ../build ; tar czf ../dist/libzimg.tgz *' - - name: Publish artifact - uses: actions/upload-artifact@v2 - with: - name: libzimg-${{ inputs.env }}-${{ inputs.config }} - path: dist/libzimg.tgz \ No newline at end of file