Skip to content

Commit

Permalink
Test Linux Binaries after they're built in CI (Cont'd) (#160)
Browse files Browse the repository at this point in the history
* Switch to uploading and downloading binary files individually.
  • Loading branch information
afinetooth authored Sep 27, 2024
1 parent ce315b4 commit 1317a45
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,23 +123,23 @@ jobs:
# name: coveralls-linux.tar.gz
# path: dist/coveralls-linux.tar.gz
#
# - name: Upload coveralls-linux-x86_64
# uses: actions/upload-artifact@v4
# with:
# name: coveralls-linux-x86_64
# path: dist/coveralls-linux-x86_64
- name: Upload coveralls-linux-x86_64
uses: actions/upload-artifact@v4
with:
name: coveralls-linux-x86_64
path: dist/coveralls-linux-x86_64
#
# - name: Upload coveralls-linux-x86_64.tar.gz
# uses: actions/upload-artifact@v4
# with:
# name: coveralls-linux-x86_64.tar.gz
# path: dist/coveralls-linux-x86_64.tar.gz
#
# - name: Upload coveralls-linux-aarch64
# uses: actions/upload-artifact@v4
# with:
# name: coveralls-linux-aarch64
# path: dist/coveralls-linux-aarch64
- name: Upload coveralls-linux-aarch64
uses: actions/upload-artifact@v4
with:
name: coveralls-linux-aarch64
path: dist/coveralls-linux-aarch64
#
# - name: Upload coveralls-linux-aarch64.tar.gz
# uses: actions/upload-artifact@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-binaries-qemu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
name: coveralls-linux-x86_64
path: ./artifacts
- name: Test binary
env:
Expand All @@ -47,7 +47,7 @@ jobs:
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
name: coveralls-linux-aarch64
path: ./artifacts
- name: Test binary
env:
Expand Down
18 changes: 16 additions & 2 deletions .github/workflows/test-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,27 @@ jobs:
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
"https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/artifacts" | jq '.artifacts[] | .name'
- name: Download built artifacts (linux binaries)
# - 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/

- name: Download built x86_64 binary
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-binaries
name: coveralls-linux-x86_64
path: ./binaries/

- name: Download built aarch64 binary
uses: actions/download-artifact@v4
with:
run-id: ${{ github.event.workflow_run.id }}
name: coveralls-linux-aarch64
path: ./binaries/

# Debug step to list available artifacts
- name: List available artifacts in ./binaries/
run: ls -la ./binaries/
Expand Down

0 comments on commit 1317a45

Please sign in to comment.