Create test.yml

This commit is contained in:
Daniel Stankewitz 2022-09-08 17:46:19 +02:00 committed by GitHub
parent 87ee3a9deb
commit 011e815b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

54
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,54 @@
name: 'SVT-AV1'
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-libsvtav1 --enable-libsnappy --enable-libmp3lame --enable-libzimg --enable-libopus --enable-libvorbis --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvpx "
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:
libsvtav1:
runs-on: ${{ inputs.system }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/libsvtav1
with:
refId: v1.2.0
config: ${{ inputs.config }}