Skip to content

Commit

Permalink
The dawidd6/action-download-artifact@v3 approach worked, so extend it…
Browse files Browse the repository at this point in the history
… to the test-linux-aarch64 job.
  • Loading branch information
afinetooth committed Oct 1, 2024
1 parent 605efaa commit edb3dda
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ jobs:
COVERALLS_REPO_TOKEN: ${{ github.token }}
run: |
binary=test/coveralls-linux-x86_64
COVERALLS_SERVICE_NUMBER=${{ github.run_id }}-x86_64-test $binary report --measure --base-path src/coverage_reporter/
COVERALLS_SERVICE_NUMBER=x86_64-test-${{ github.run_id }} $binary report --measure --base-path src/coverage_reporter/
test-linux-aarch64:
runs-on: ubuntu-latest
Expand All @@ -191,6 +191,27 @@ jobs:
sudo apt-get install -y qemu-user
qemu-aarch64 $binary --version
- name: Download latest coverage summary
uses: dawidd6/action-download-artifact@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
workflow: ci.yml
name: coverage-summary
path: ./test/
search_artifacts: true
check_artifacts: true
if_no_artifact_found: warn

- name: Display coverage summary
run: cat ./test/coverage_summary.txt

- name: Report coverage with aarch64 binary
env:
COVERALLS_REPO_TOKEN: ${{ github.token }}
run: |
binary=test/coveralls-linux-aarch64
COVERALLS_SERVICE_NUMBER=aarch64-test-${{ github.run_id }} qemu-aarch64 $binary report --measure --base-path src/coverage_reporter/
# # Download the coverage report generated from ci.yml
# - name: Download coverage report
# uses: actions/download-artifact@v4
Expand Down

0 comments on commit edb3dda

Please sign in to comment.