Skip to content

Commit

Permalink
also run aarch64 tests + build regardless of the presence of qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
gballet committed Dec 5, 2023
1 parent 510568d commit 5d4a6e9
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,23 @@ jobs:
with:
zig-version: 0.11.0

- name: Check for presence of qemu-aarch64
run: |
if [[ `which qemu-aarch64` != '' ]]; then
echo "HAS_QEMU_AARCH64=true" >> "$GITHUB_ENV"
else
echo "HAS_QEMU_AARCH64=false" >> "$GITHUB_ENV"
fi
- name: Get submodules
run: git submodule update --init --recursive

- name: Build
run: zig build -Dtarget="aarch64-linux"

- name: Test
run: git submodule update --init --recursive && zig build -Dtarget="aarch64-linux"
if: env.HAS_QEMU_AARCH64 == 'true'
run: zig build test -Dtarget="aarch64-linux"

build-riscv64:
runs-on: self-hosted
Expand All @@ -79,9 +94,11 @@ jobs:
fi
- name: Get submodules
if: env.HAS_QEMU_RISCV64 == 'true'
run: git submodule update --init --recursive

- name: Build and run target
- name: Build
run: zig build -Dtarget="riscv64-linux"

- name: Test
if: env.HAS_QEMU_RISCV64 == 'true'
run: zig build test -Dtarget="riscv64-linux"

0 comments on commit 5d4a6e9

Please sign in to comment.