Update ffmpeg.yml
This commit is contained in:
parent
62166944bf
commit
3e5859259a
70
.github/workflows/ffmpeg.yml
vendored
70
.github/workflows/ffmpeg.yml
vendored
@ -3,6 +3,14 @@ name: 'Build FFmpeg'
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
|
system:
|
||||||
|
type: choice
|
||||||
|
required: true
|
||||||
|
default: 'windows-2022'
|
||||||
|
description: 'System'
|
||||||
|
options:
|
||||||
|
- windows-2022
|
||||||
|
|
||||||
type:
|
type:
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
@ -29,6 +37,9 @@ on:
|
|||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
|
system:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -46,74 +57,57 @@ env:
|
|||||||
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
cFlags: ${{ inputs.config == 'release' && '-MD' || '-MDd' }}
|
||||||
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
variant: ${{ inputs.type == 'static' && ' --pkg-config-flags="--static" --disable-shared --enable-static' || ' --disable-static --enable-shared' }}
|
||||||
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
msbuildConfig: ${{ inputs.config == 'release' && 'Release' || 'Debug' }}
|
||||||
system: windows-2022
|
|
||||||
libvpl_refId: ''
|
|
||||||
libogg_refId: v1.3.5
|
|
||||||
libvorbis_refId: v1.3.7
|
|
||||||
libsvtav1_refId: v1.1.0
|
|
||||||
libsnappy_refId: 1.1.9
|
|
||||||
libvpx_refId: v1.12.0
|
|
||||||
libmp3lame_refId: ''
|
|
||||||
libzimg_refId: ''
|
|
||||||
libopus_refId: ''
|
|
||||||
libfdkaac_refId: ''
|
|
||||||
libx264_refId: ''
|
|
||||||
libx265_refId: ''
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
libvpl:
|
libvpl:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ env.libvpl_refId != '' }}
|
if: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpl
|
- uses: ./.github/actions/libvpl
|
||||||
with:
|
with:
|
||||||
refId: ${{ env.libvpl_refId }}
|
refId: ''
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
liboggvorbis:
|
liboggvorbis:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ env.libogg_refId != '' && env.libvorbis_refId != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/liboggvorbis
|
- uses: ./.github/actions/liboggvorbis
|
||||||
with:
|
with:
|
||||||
libogg_refId: ${{ env.libogg_refId }}
|
libogg_refId: v1.3.5
|
||||||
libvorbis_refId: ${{ env.libvorbis_refId }}
|
libvorbis_refId: v1.3.7
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsvtav1:
|
libsvtav1:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ env.libsvtav1_refId != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libsvtav1
|
- uses: ./.github/actions/libsvtav1
|
||||||
with:
|
with:
|
||||||
refId: ${{ env.libsvtav1_refId }}
|
refId: v1.1.0
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsnappy:
|
libsnappy:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ env.libsnappy_refId != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libsnappy
|
- uses: ./.github/actions/libsnappy
|
||||||
with:
|
with:
|
||||||
refId: ${{ env.libsnappy_refId }}
|
refId: 1.1.9
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libvpx:
|
libvpx:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ env.libvpx_refId != '' }}
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpx
|
- uses: ./.github/actions/libvpx
|
||||||
with:
|
with:
|
||||||
refId: ${{ env.libvpx_refId }}
|
refId: v1.12.0
|
||||||
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
|
||||||
@ -122,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
|
||||||
@ -131,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
|
||||||
@ -140,7 +134,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libfdkaac:
|
libfdkaac:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libfdkaac
|
- uses: ./.github/actions/libfdkaac
|
||||||
@ -149,7 +143,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx264:
|
libx264:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx264
|
- uses: ./.github/actions/libx264
|
||||||
@ -158,7 +152,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx265-12:
|
libx265-12:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx265-12
|
- uses: ./.github/actions/libx265-12
|
||||||
@ -167,7 +161,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx265-10:
|
libx265-10:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx265-10
|
- uses: ./.github/actions/libx265-10
|
||||||
@ -186,7 +180,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
cartwheel:
|
cartwheel:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ inputs.source == 'cartwheel' }}
|
if: ${{ inputs.source == 'cartwheel' }}
|
||||||
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
needs: [libvpl,libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||||
steps:
|
steps:
|
||||||
@ -234,7 +228,7 @@ jobs:
|
|||||||
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
path: dist/ffmpeg-win64-${{ inputs.type }}-${{ inputs.config }}.tar.gz
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
runs-on: ${{ env.system }}
|
runs-on: ${{ inputs.system }}
|
||||||
if: ${{ inputs.source == 'ffmpeg' }}
|
if: ${{ inputs.source == 'ffmpeg' }}
|
||||||
needs: [libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
needs: [libopus,libsvtav1,libsnappy,libmp3lame,libzimg,liboggvorbis,libx264,libx265,libfdkaac,libvpx]
|
||||||
steps:
|
steps:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user