Files
voukoder-ffmpeg/.github/workflows/build.yml
Daniel Stankewitz 1daf48dad2 Update build.yml
2022-03-21 08:06:58 +01:00

39 lines
1.4 KiB
YAML

name: Build FFmpeg
on:
workflow_dispatch:
inputs:
config:
description: 'Configuration'
required: true
default: 'Debug'
jobs:
ffmpeg:
runs-on: windows-2019
needs: []
steps:
- name: Set up GIT
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- name: Checkout FFmpeg
uses: actions/checkout@v3.0.0
with:
repository: FFmpeg/FFmpeg.git
ref: release/5.0
path: repo
- name: Set up WSL
uses: Vampire/setup-wsl@v1.2.0
with:
additional-packages:
build-essential unzip nasm
- name: Configure
shell: cmd
run: |
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
md build
wsl bash --noprofile --norc -euo pipefail -c "export BUILD=$(realpath 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 ; make install"
dir ../build