Files
voukoder-ffmpeg/.github/workflows/build.yml
Daniel Stankewitz 070b16cc10 Update build.yml
2022-03-20 10:14:44 +01:00

55 lines
1.6 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 WSL
uses: Vampire/setup-wsl@v1.2.0
with:
distribution: Debian
- name: Set up MSBuild
uses: microsoft/setup-msbuild@v1.1
with:
msbuild-architecture: x64
- name: Set up cache
uses: actions/cache@v2
env:
cache-name: cache-ffmpeg
with:
path: ~/build
key: ${{ env.cache-name }}
- name: Set up GIT
shell: cmd {0}
run: |
git config --global core.eol lf
git config --global core.autocrlf input
- name: Cloning GIT repository
uses: actions/checkout@v3
with:
submodules: 'true'
- name: Get artifacts
uses: actions/download-artifact@master
with:
name: oneVPL
- name: Build FFmpeg
shell: wsl-bash {0}
run: |
sudo ap-get install dos2unix
mkdir build
BUILD=$(realpath build)
tar zxf *.tgz -C build
cd repos/ffmpeg
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 --enable-libvpl
ls -laR $BUILD