Update ffmpeg.yml
This commit is contained in:
parent
59b1ca51d3
commit
bbf987a0a3
53
.github/workflows/ffmpeg.yml
vendored
53
.github/workflows/ffmpeg.yml
vendored
@ -15,34 +15,29 @@ env:
|
|||||||
cFlags: -MDd
|
cFlags: -MDd
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
libogg:
|
||||||
FFmpeg:
|
|
||||||
runs-on: windows-2019
|
runs-on: windows-2019
|
||||||
needs: []
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up MSYS2
|
- name: Set up MSYS2
|
||||||
uses: msys2/setup-msys2@v2
|
uses: msys2/setup-msys2@v2
|
||||||
with:
|
with:
|
||||||
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
install: base-devel binutils mingw-w64-x86_64-cmake nasm
|
||||||
path-type: inherit
|
path-type: inherit
|
||||||
- name: Set up GIT
|
- name: Set up GIT
|
||||||
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
|
||||||
- name: Checkout FFmpeg
|
- name: Checkout FFmpeg
|
||||||
uses: actions/checkout@v3.0.0
|
uses: actions/checkout@v3.0.0
|
||||||
with:
|
with:
|
||||||
repository: FFmpeg/FFmpeg.git
|
repository: FFmpeg/FFmpeg.git
|
||||||
ref: release/5.0
|
ref: release/5.0
|
||||||
path: repo
|
path: repo
|
||||||
- name: Build FFmpeg
|
- name: Build FFmpeg
|
||||||
shell: cmd
|
shell: cmd
|
||||||
run: |
|
run: |
|
||||||
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
||||||
md build dist
|
md build dist
|
||||||
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd repo ; PKG_CONFIG_PATH=../build/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="${{ env.cFlags }} -I../build/include" --extra-ldflags="-LIBPATH:../build/lib" --prefix=../build --pkg-config-flags="--static" --disable-doc --disable-shared --enable-static --enable-runtime-cpudetect --disable-devices --disable-demuxers --disable-decoders --disable-network --enable-w32threads --enable-gpl ; make ; make install ; cd ../build/lib ; for file in *.a; do mv "$file" "`basename "$file" .a`.lib"; done ; rm -rf fdk-aac.lib pkgconfig *.la ../share ; cd .. ; tar czf ../dist/ffmpeg-win64-static-${{ env.msysConfig }}.tar.gz *'
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd repo ; autoreconf -i ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=../build --disable-shared ; make ; make install'
|
||||||
- name: Publish FFmpeg artifacts
|
|
||||||
uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: Nightly Build (${{ env.winConfig }})
|
|
||||||
path: dist/ffmpeg-win64-static-${{ env.msysConfig }}.tar.gz
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user