Skip to content

Commit

Permalink
Test Linux Binaries after they're built in CI (Cont'd) (#159)
Browse files Browse the repository at this point in the history
* Add correct Run ID to artifact download step(s) in both test workflows.
  • Loading branch information
afinetooth authored Sep 27, 2024
1 parent 6cb6d3a commit ce315b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test-binaries-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- name: Download coveralls-linux-x86_64 binary
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
path: ./artifacts
- name: Test binary
Expand All @@ -37,14 +38,15 @@ jobs:
run: |
echo "Available artifacts:"
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts" | jq '.artifacts[] | .name'
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name'
- name: Set up QEMU for aarch64 emulation
uses: docker/setup-qemu-action@v3
with:
platforms: linux/arm64 # Or qemu-aarch64?
- name: Download coveralls-linux-aarch64 binary
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
path: ./artifacts
- name: Test binary
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- name: Download built artifacts (linux binaries)
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
path: ./binaries/

Expand Down

0 comments on commit ce315b4

Please sign in to comment.