Skip to content

Commit

Permalink
CI: adds a multi-architecture test using Docker+Qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tpt committed Feb 6, 2023
1 parent b4af249 commit 25888dc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,16 @@ jobs:
args: --test loom --features=loom,instrumentation --release --verbose
env:
LOOM_MAX_PREEMPTIONS: 3

test_archs:
runs-on: ubuntu-latest
strategy:
matrix:
architecture: [ "386", "amd64", "arm", "arm64" ]
continue-on-error: true
steps:
- uses: actions/checkout@v3
- uses: docker/setup-qemu-action@v2
with:
platforms: linux/${{ matrix.architecture }}
- run: docker run -v "$(pwd)":/workdir --platform linux/${{ matrix.architecture }} rust:1-bookworm /bin/bash /workdir/.github/workflows/test_archs.sh
4 changes: 4 additions & 0 deletions .github/workflows/test_archs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd "$( dirname "${BASH_SOURCE[0]}" )"
cargo test --verbose

0 comments on commit 25888dc

Please sign in to comment.