Files
voukoder-ffmpeg/.github/workflows/test.yml
Daniel Stankewitz 4f07e4e84e Update test.yml
2022-09-25 14:46:52 +02:00

55 lines
1.3 KiB
YAML

name: mfx
on:
workflow_dispatch:
inputs:
system:
type: choice
required: true
default: 'windows-2022'
description: 'System'
options:
- windows-2022
type:
type: choice
required: true
default: 'static'
description: Type
options:
- static
- shared
config:
type: choice
required: true
default: 'debug'
description: 'Configuration'
options:
- debug
- release
ffmpegRef:
type: string
required: true
default: 'release/5.1'
description: 'FFmpeg refId'
env:
vsPath: C:\Program Files\Microsoft Visual Studio\2022\Enterprise\
COMPONENTS: "--enable-mfx "
NASM_EXECUTABLE: nasm
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
jobs:
libmfx:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libmfx
with:
refId: v1.2.0
config: ${{ inputs.config }}