test-binaries-qemu #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-binaries-qemu | |
permissions: | |
contents: read | |
actions: read | |
on: | |
workflow_run: | |
workflows: [build] | |
types: | |
- completed | |
jobs: | |
test-x86_64: | |
runs-on: ubuntu-22.04 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
# Debug step to list artifacts for the run | |
- name: List available artifacts | |
run: | | |
echo "Available artifacts:" | |
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 coveralls-linux-x86_64 binary | |
uses: actions/download-artifact@v4 | |
with: | |
run-id: ${{ github.event.workflow_run.id }} | |
name: coveralls-linux-x86_64 | |
path: ./artifacts | |
- name: Test binary | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
chmod +x ./artifacts/coveralls-linux-x86_64 | |
./artifacts/coveralls-linux-x86_64 --version | |
./artifacts/coveralls-linux-x86_64 report --measure --base-path src/coverage_reporter/ | |
test-aarch64: | |
runs-on: ubuntu-22.04 | |
steps: | |
# Debug step to list artifacts for the run | |
- name: List available artifacts | |
run: | | |
echo "Available artifacts:" | |
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: 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-aarch64 | |
path: ./artifacts | |
- name: Test binary | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
run: | | |
chmod +x ./artifacts/coveralls-linux-aarch64 | |
./artifacts/coveralls-linux-aarch64 --version | |
./artifacts/coveralls-linux-aarch64 report --measure --base-path src/coverage_reporter/ |