Files
voukoder-ffmpeg/.github/workflows/ffmpeg.yml
Daniel Stankewitz 48f721831e Update ffmpeg.yml
2022-03-21 10:22:55 +01:00

33 lines
1.3 KiB
YAML

name: FFmpeg
on:
workflow_dispatch:
inputs:
config:
description: 'Configuration'
required: true
default: 'Debug'
jobs:
FFmpeg:
runs-on: windows-2022
needs: []
steps:
- name: Set up MSYS2
uses: msys2/setup-msys2@v2
with:
install: base-devel binutils mingw-w64-x86_64-cmake nasm
path-type: inherit
- name: Clone FFmpeg 5.0
run: |
git config --global core.autocrlf false
git config --global core.eol lf
git clone -b release/5.0 https://github.com/FFmpeg/FFmpeg.git repo
- name: Build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
md build
D:\a\_temp\setup-msys2\msys2.cmd -c 'export BUILD=../build ; cd repo ; PKG_CONFIG_PATH=$BUILD/lib/pkgconfig ./configure --toolchain=msvc --extra-cflags="-MDd -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 -j || true; tail --lines=20 ffbuild/config.log'