44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
name: FFmpeg
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
config:
|
|
description: 'Configuration'
|
|
required: true
|
|
default: 'Debug'
|
|
|
|
env:
|
|
vsPath: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\
|
|
msysConfig: debug
|
|
winConfig: Debug
|
|
cFlags: -MDd
|
|
|
|
jobs:
|
|
libogg:
|
|
runs-on: windows-2019
|
|
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: 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: xiph/ogg
|
|
ref: master
|
|
path: repo
|
|
- name: Build FFmpeg
|
|
shell: cmd
|
|
run: |
|
|
call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat"
|
|
md build dist
|
|
D:\a\_temp\setup-msys2\msys2.cmd -c 'cd repo ; CC=cl.exe CXX=cl.exe CXXFLAGS=${{ env.cFlags }} ./configure --prefix=../build --disable-shared ; make ; make install'
|
|
|
|
|