Update ffmpeg2.yml

This commit is contained in:
Daniel Stankewitz 2022-03-27 19:27:56 +02:00 committed by GitHub
parent 7f66fd906e
commit 1dc6173424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -293,18 +293,6 @@ jobs:
libopus: libopus:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Set up cache
uses: actions/cache@v2
env:
cache-name: cache-ffmpeg-${{ env.msysConfig }}
with:
path: cache
key: cache-key
- name: Set up GIT - name: Set up GIT
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
@ -315,7 +303,20 @@ jobs:
repository: xiph/opus repository: xiph/opus
ref: master ref: master
path: opus path: opus
- name: Check cache
id: libopus-cache
uses: actions/cache@v3
with:
path: dist
key: libopus-${{ env.msysConfig }}-${{ 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 - name: Build OPUS
if: steps.libopus-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
@ -332,18 +333,6 @@ jobs:
libx264: libx264:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Set up cache
uses: actions/cache@v2
env:
cache-name: cache-ffmpeg-${{ env.msysConfig }}
with:
path: cache
key: cache-key
- name: Set up GIT - name: Set up GIT
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
@ -354,7 +343,20 @@ jobs:
repository: mirror/x264 repository: mirror/x264
ref: master ref: master
path: x264 path: x264
- name: Check cache
id: libx264-cache
uses: actions/cache@v3
with:
path: dist
key: libx264-${{ env.msysConfig }}-${{ 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 - name: Build X264
if: steps.libx264-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
@ -379,12 +381,12 @@ jobs:
repository: mstorsjo/fdk-aac repository: mstorsjo/fdk-aac
ref: master ref: master
path: fdkaac path: fdkaac
- name: Check cache for LIBFDK - name: Check cache
id: libfdkaac-cache id: libfdkaac-cache
uses: actions/cache@v3 uses: actions/cache@v3
with: with:
path: dist path: dist
key: ${{ env.msysConfig }}-${{ hashFiles('fdkaac') }} key: libfdkaac-${{ env.msysConfig }}-${{ hashFiles('fdkaac') }}
- name: Set up MSYS2 - name: Set up MSYS2
if: steps.libfdkaac-cache.outputs.cache-hit != 'true' if: steps.libfdkaac-cache.outputs.cache-hit != 'true'
uses: msys2/setup-msys2@v2 uses: msys2/setup-msys2@v2
@ -407,17 +409,26 @@ jobs:
libx265-12: libx265-12:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM
uses: ilammy/setup-nasm@v1.2.1
- name: Checkout X265 - name: Checkout X265
shell: cmd shell: cmd
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 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-${{ env.msysConfig }}-${{ 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) - name: Build X265 (12 bit)
if: steps.libx26512-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
@ -437,17 +448,26 @@ jobs:
libx265-10: libx265-10:
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM
uses: ilammy/setup-nasm@v1.2.1
- name: Checkout X265 - name: Checkout X265
shell: cmd shell: cmd
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 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-${{ env.msysConfig }}-${{ 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) - name: Build X265 (10 bit)
if: steps.libx26510-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
@ -468,30 +488,41 @@ jobs:
runs-on: windows-2022 runs-on: windows-2022
needs: [libx265-12,libx265-10] needs: [libx265-12,libx265-10]
steps: steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils autotools automake
path-type: inherit
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
- name: Set up NASM
uses: ilammy/setup-nasm@v1.2.1
- name: Checkout X265 - name: Checkout X265
shell: cmd shell: cmd
run: | run: |
git config --global core.autocrlf false git config --global core.autocrlf false
git config --global core.eol lf git config --global core.eol lf
git clone -b Release_3.5 https://github.com/videolan/x265.git x265 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-${{ env.msysConfig }}-${{ 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 - name: Set up dependant libs
if: steps.libx265-cache.outputs.cache-hit != 'true'
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
path: build path: build
- name: Build X265 - name: Build X265
if: steps.libx265-cache.outputs.cache-hit != 'true'
shell: cmd shell: cmd
run: | run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
md dist dist\include dist\lib dist\lib\pkgconfig md di dist dist\include dist\lib dist\lib\pkgconfig
cd x265/build/vc15-x86_64 cd x265/build/vc15-x86_64
md work md work
cd work cd work
@ -503,13 +534,12 @@ jobs:
cd ..\..\..\.. 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\x265_10bit.lib build\x265_12bit\x265_12bit.lib "${{ 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\x265_10bit.lib build\x265_12bit\x265_12bit.lib
copy x265\source\x265.h dist\include\ copy x265\source\x265.h dist\include\
dir /s dist D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../di/libx265.tgz *'
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd dist ; tar czf ../libx265.tgz *'
- name: Publish artifact - name: Publish artifact
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
name: libx265 name: libx265
path: libx265.tgz path: di/libx265.tgz
ffmpeg: ffmpeg:
runs-on: windows-2022 runs-on: windows-2022