Update ffmpeg.yml
This commit is contained in:
parent
85b34eb0c1
commit
62166944bf
85
.github/workflows/ffmpeg.yml
vendored
85
.github/workflows/ffmpeg.yml
vendored
@ -3,23 +3,6 @@ name: 'Build FFmpeg'
|
|||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
|
||||||
type: choice
|
|
||||||
required: true
|
|
||||||
default: 'windows-2022'
|
|
||||||
description: 'Environment'
|
|
||||||
options:
|
|
||||||
- windows-2022
|
|
||||||
|
|
||||||
source:
|
|
||||||
type: choice
|
|
||||||
required: true
|
|
||||||
default: 'ffmpeg'
|
|
||||||
description: Source
|
|
||||||
options:
|
|
||||||
- ffmpeg
|
|
||||||
- cartwheel
|
|
||||||
|
|
||||||
type:
|
type:
|
||||||
type: choice
|
type: choice
|
||||||
required: true
|
required: true
|
||||||
@ -46,12 +29,6 @@ on:
|
|||||||
|
|
||||||
workflow_call:
|
workflow_call:
|
||||||
inputs:
|
inputs:
|
||||||
env:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
source:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
required: true
|
required: true
|
||||||
@ -69,56 +46,74 @@ 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: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
if: ${{ inputs.source == 'cartwheel' }}
|
if: ${{ env.libvpl_refId != '' }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libvpl
|
- uses: ./.github/actions/libvpl
|
||||||
with:
|
with:
|
||||||
env: ${{ inputs.env }}
|
refId: ${{ env.libvpl_refId }}
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
liboggvorbis:
|
liboggvorbis:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.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:
|
||||||
env: ${{ inputs.env }}
|
libogg_refId: ${{ env.libogg_refId }}
|
||||||
|
libvorbis_refId: ${{ env.libvorbis_refId }}
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsvtav1:
|
libsvtav1:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.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:
|
||||||
env: ${{ inputs.env }}
|
refId: ${{ env.libsvtav1_refId }}
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libsnappy:
|
libsnappy:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.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:
|
||||||
env: ${{ inputs.env }}
|
refId: ${{ env.libsnappy_refId }}
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libvpx:
|
libvpx:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.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:
|
||||||
env: ${{ inputs.env }}
|
refId: ${{ env.libvpx_refId }}
|
||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libmp3lame:
|
libmp3lame:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libmp3lame
|
- uses: ./.github/actions/libmp3lame
|
||||||
@ -127,7 +122,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libzimg:
|
libzimg:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libzimg
|
- uses: ./.github/actions/libzimg
|
||||||
@ -136,7 +131,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libopus:
|
libopus:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libopus
|
- uses: ./.github/actions/libopus
|
||||||
@ -145,7 +140,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libfdkaac:
|
libfdkaac:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libfdkaac
|
- uses: ./.github/actions/libfdkaac
|
||||||
@ -154,7 +149,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx264:
|
libx264:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx264
|
- uses: ./.github/actions/libx264
|
||||||
@ -163,7 +158,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx265-12:
|
libx265-12:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx265-12
|
- uses: ./.github/actions/libx265-12
|
||||||
@ -172,7 +167,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx265-10:
|
libx265-10:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: ./.github/actions/libx265-10
|
- uses: ./.github/actions/libx265-10
|
||||||
@ -181,7 +176,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
libx265:
|
libx265:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.system }}
|
||||||
needs: [libx265-12,libx265-10]
|
needs: [libx265-12,libx265-10]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@ -191,7 +186,7 @@ jobs:
|
|||||||
config: ${{ inputs.config }}
|
config: ${{ inputs.config }}
|
||||||
|
|
||||||
cartwheel:
|
cartwheel:
|
||||||
runs-on: ${{ inputs.env }}
|
runs-on: ${{ env.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:
|
||||||
@ -239,7 +234,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: ${{ inputs.env }}
|
runs-on: ${{ env.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