diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e107e38a..97235769 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -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 diff --git a/.github/workflows/test_archs.sh b/.github/workflows/test_archs.sh new file mode 100644 index 00000000..f2eb770a --- /dev/null +++ b/.github/workflows/test_archs.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +cd "$( dirname "${BASH_SOURCE[0]}" )" +cargo test --verbose