From eb1a93c379503f54849119d62db7731e2c333d35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Garillot?= Date: Mon, 9 Nov 2020 10:22:54 -0500 Subject: [PATCH] Add cross-compilation on 32-bits --- .github/workflows/main.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5fe1ef1..15f3a3d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,6 +35,26 @@ jobs: command: test args: --no-default-features --features ${{ matrix.backend_feature }} + cross-test: + name: Test on ${{ matrix.target }} (using cross) + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: + # 32-bit x86 + - i686-unknown-linux-gnu + backend_feature: + - u64_backend + - u32_backend + steps: + - uses: actions/checkout@v2 + - uses: hecrj/setup-rust-action@v1 + - run: cargo install cross + # Note: just use `cross` as you would `cargo`, but always + # pass the `--target=${{ matrix.target }}` arg. (Yes, really). + - run: cross test --verbose --target=${{ matrix.target }} --no-default-features --features ${{ matrix.backend_feature }} + benches: name: cargo bench compilation runs-on: ubuntu-latest