Update ffmpeg.yml
This commit is contained in:
parent
0b356d3feb
commit
2ef26b9c22
37
.github/workflows/ffmpeg.yml
vendored
37
.github/workflows/ffmpeg.yml
vendored
@ -295,6 +295,7 @@ jobs:
|
||||
path: dist/libmp3lame.tgz
|
||||
|
||||
libzimg:
|
||||
if: ${{ false }}
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- name: Set up MSYS2
|
||||
@ -332,11 +333,43 @@ jobs:
|
||||
path: dist/libzimg.tgz
|
||||
|
||||
libopus:
|
||||
if: ${{ false }}
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- 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:
|
||||
if: ${{ false }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user