Update ffmpeg-lgpl.yaml
This commit is contained in:
parent
7d68bf05f2
commit
ce5b0ae521
47
.github/workflows/ffmpeg-lgpl.yaml
vendored
47
.github/workflows/ffmpeg-lgpl.yaml
vendored
@ -3,6 +3,23 @@ name: 'Build FFmpeg (LGPL)'
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
system:
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: 'windows-2022'
|
||||||
|
description: 'System'
|
||||||
|
options:
|
||||||
|
- windows-2022
|
||||||
|
|
||||||
|
type:
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: 'shared'
|
||||||
|
description: Type
|
||||||
|
options:
|
||||||
|
- static
|
||||||
|
- shared
|
||||||
|
|
||||||
config:
|
config:
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
@ -20,6 +37,12 @@ on:
|
|||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
system:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
type:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
config:
|
config:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -33,14 +56,12 @@ env:
|
|||||||
#--enable-libvorbis
|
#--enable-libvorbis
|
||||||
NASM_EXECUTABLE: nasm
|
NASM_EXECUTABLE: nasm
|
||||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||||
variant: ' --disable-static --enable-shared --build-suffix=-voukoderpro'
|
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared --build-suffix=-voukoderpro' }}
|
||||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||||
system: windows-2022
|
|
||||||
type: shared
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
libvpl:
|
libvpl:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpl
|
- uses: ./.github/actions/libvpl
|
||||||
@ -59,7 +80,7 @@ jobs:
|
|||||||
# config: ${{ inputs.config }}
|
# config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsvtav1:
|
libsvtav1:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libsvtav1
|
- uses: ./.github/actions/libsvtav1
|
||||||
@ -68,7 +89,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsnappy:
|
libsnappy:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libsnappy
|
- uses: ./.github/actions/libsnappy
|
||||||
@ -77,7 +98,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libvpx:
|
libvpx:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpx
|
- uses: ./.github/actions/libvpx
|
||||||
@ -86,7 +107,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libmp3lame:
|
libmp3lame:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libmp3lame
|
- uses: ./.github/actions/libmp3lame
|
||||||
@ -95,7 +116,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libzimg:
|
libzimg:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libzimg
|
- uses: ./.github/actions/libzimg
|
||||||
@ -104,7 +125,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libopus:
|
libopus:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libopus
|
- uses: ./.github/actions/libopus
|
||||||
@ -113,7 +134,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
|
needs: [libvpl,libsvtav1,libsnappy,libvpx,libmp3lame,libzimg,libopus]
|
||||||
#liboggvorbis
|
#liboggvorbis
|
||||||
steps:
|
steps:
|
||||||
@ -171,5 +192,5 @@ jobs:
|
|||||||
- name: Publish FFmpeg artifacts
|
- name: Publish FFmpeg artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: FFmpeg ${{ env.system }} ${{ inputs.config }}${{ inputs.config }} package build
|
name: FFmpeg ${{ inputs.system }} ${{ inputs.config }}${{ inputs.config }} package build
|
||||||
path: dist/ffmpeg-win64-${{ env.type }}-${{ inputs.config }}.tar.gz
|
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
||||||
|
Loading…
x
Reference in New Issue
Block a user