From 3c2d542100d569048995765b8471c90ba5846c61 Mon Sep 17 00:00:00 2001 From: Tpt Date: Mon, 6 Feb 2023 21:25:09 +0100 Subject: [PATCH] CI: Test aarch64 using Qemu --- .github/workflows/rust.yml | 9 +++++++++ src/index.rs | 1 + 2 files changed, 10 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e107e38a..85325b61 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -91,3 +91,12 @@ jobs: args: --test loom --features=loom,instrumentation --release --verbose env: LOOM_MAX_PREEMPTIONS: 3 + + test_aarch64: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: docker/setup-qemu-action@v2 + with: + platforms: linux/arm64 + - run: docker run -v "$(pwd)":/workdir --platform linux/arm64 -w /workdir rust:1-bookworm cargo test --features instrumentation --verbose diff --git a/src/index.rs b/src/index.rs index 63b407ee..bd55bf8f 100644 --- a/src/index.rs +++ b/src/index.rs @@ -630,6 +630,7 @@ mod test { for partial_key in &partial_keys { let key_prefix = *partial_key << (CHUNK_ENTRIES_BITS + SIZE_TIERS_BITS); + #[cfg(target_feature = "sse2")] assert_eq!( index_table.find_entry_sse2(key_prefix, 0, &chunk).0.partial_key(index_bits), *partial_key