Update ffmpeg.yml

This commit is contained in:
Daniel Stankewitz 2022-03-22 10:27:27 +01:00 committed by GitHub
parent 0b356d3feb
commit 2ef26b9c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -295,6 +295,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
@ -332,11 +333,43 @@ 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
run: echo "bla" 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
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: Build OPUS
shell: cmd
run: |
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
cd opus/win32/VS2015
md build build\include build\lib build\lib\pkgconfig dist
MSBuild.exe /property:Configuration="${{ env.winConfig }}" /property:Platform=x64 /property:PlatformToolset=v142 opus.vcxproj
D:\a\_temp\setup-msys2\msys2.cmd -c 'cp x64/${{ env.winConfig }}/opus.lib ../../../build/lib/opus.lib ; cd ../../.. ; cp -r opus/includebuild/include/opus ; cp opus/opus.pc.in build/lib/pkgconfig/opus.pc ; sed -i "s#@prefix@#$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
path: dist/libopus.tgz
libx264: libx264:
if: ${{ false }} if: ${{ false }}