Skip to content

Commit

Permalink
[build] Add missing workflow file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakthrough committed Nov 26, 2024
1 parent 1048735 commit c8a3905
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions .github/actions/setup-ffmpeg/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: 'Setup FFmpeg'
inputs:
github-token:
required: true

runs:
using: 'composite'
steps:
- name: Setup FFmpeg (latest)
id: latest
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}

- name: Setup FFmpeg (7.1.0)
if: ${{ steps.latest.outcome == 'failure' }}
id: v7-1-0
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}
ffmpeg-version: "7.1.0"

- name: Setup FFmpeg (7.0.1)
if: ${{ steps.latest.outcome == 'failure' }}
id: v7-0-1
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}
ffmpeg-version: "7.0.1"

- name: Setup FFmpeg (7.0.0)
if: ${{ steps.latest.outcome == 'failure' }}
id: v7-0-0
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}
ffmpeg-version: "7.0.0"

- name: Setup FFmpeg (6.1.1)
if: ${{ steps.v7-0-0.outcome == 'failure' }}
id: v6-1-1
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}
ffmpeg-version: "6.1.1"

# The oldest version we allow falling back to must not have `continue-on-error: true`
- name: Setup FFmpeg (6.1.0)
if: ${{ steps.v6-1-1.outcome == 'failure' }}
id: v6-1-0
uses: FedericoCarboni/setup-ffmpeg@v3
with:
github-token: ${{ inputs.github-token }}
ffmpeg-version: "6.1.0"

0 comments on commit c8a3905

Please sign in to comment.