Skip to content

Commit

Permalink
Update GitHub Actions workflows to use dawidd6/action-download-artifa…
Browse files Browse the repository at this point in the history
…ct; refine artifact handling and descriptions
  • Loading branch information
StoneyEagle committed Jan 25, 2025
1 parent 34d5c73 commit 10f78d3
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 24 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,13 @@ jobs:
fetch-depth: 0

- name: Download build artifacts
uses: actions/download-artifact@v3
uses: dawidd6/action-download-artifact@v2
with:
workflow: main.yml
name: ffmpeg-binaries
path: downloads
workflow_conclusion: success
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Create Release
id: create-release
Expand Down Expand Up @@ -233,4 +236,5 @@ jobs:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: downloads/ffmpeg-darwin-arm64-7.1.tar.gz
asset_name: ffmpeg-darwin-arm64-7.1-${{ needs.check-changes.outputs.version }}.tar.gz
asset_content_type: application/gzip
asset_content_type: application/gzip

30 changes: 15 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
workflow_dispatch:
inputs:
force_test:
description: 'Force test of all images'
description: "Force test of all images"
required: true
type: boolean
default: true
Expand All @@ -35,12 +35,6 @@ jobs:
echo "Latest tag: $LATEST_TAG$"
echo "version=$LATEST_TAG" >> $GITHUB_OUTPUT
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ffmpeg-binaries
path: downloads

platform-tests-unix:
needs: check-release
runs-on: ${{ matrix.os }}
Expand All @@ -58,10 +52,13 @@ jobs:
fetch-depth: 0

- name: Download build artifacts
uses: actions/download-artifact@v3
uses: dawidd6/action-download-artifact@v2
with:
workflow: main.yml
name: ffmpeg-binaries
path: downloads
workflow_conclusion: success
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Unpack ffmpeg binary
shell: bash
Expand All @@ -75,7 +72,7 @@ jobs:
fi
tar -xvf $FILE_NAME
- name: Run Tests
id: tests
run: |
Expand Down Expand Up @@ -138,10 +135,10 @@ jobs:
# AV1 codec tests
run_test "libdav1d" "-h decoder 2>&1 | grep dav1d" "dav1d"
run_test "librav1e" "-h encoder 2>&1 | grep rav1e" "rav1e"
# Cleanup
rm -rf test_files
# Print summary
echo "----------------------------------------"
echo "Test Summary:"
Expand Down Expand Up @@ -181,10 +178,13 @@ jobs:
run: choco install wget --no-progress

- name: Download build artifacts
uses: actions/download-artifact@v3
uses: dawidd6/action-download-artifact@v2
with:
workflow: main.yml
name: ffmpeg-binaries
path: downloads
workflow_conclusion: success
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: Unpack ffmpeg binary
shell: bash
Expand All @@ -194,7 +194,7 @@ jobs:
- name: Run Tests
id: tests
shell: pwsh
shell: pwsh
run: |
$script:TOTAL_TESTS = 0
$script:PASSED_TESTS = 0
Expand Down Expand Up @@ -270,10 +270,10 @@ jobs:
# AV1 codec tests
run_test "libdav1d" "-h decoder 2>&1 | grep dav1d" "dav1d"
run_test "librav1e" "-h encoder 2>&1 | grep rav1e" "rav1e"
# Cleanup
Remove-Item -Path test_files -Recurse -Force
# Print summary
Write-Host "----------------------------------------"
Write-Host "Test Summary:"
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/validate-workflows.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: Validate Workflow Execution

on:
workflow_run:
workflows:
- Build
- Test
- Release
types:
- completed
workflow_dispatch:
# workflow_run:
# workflows:
# - Build
# - Test
# - Release
# types:
# - completed

jobs:
validate:
Expand Down

0 comments on commit 10f78d3

Please sign in to comment.