From c45d89b71895dfc425ad4e37d760c12deb54ae1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kr=C3=B6ning?= Date: Mon, 26 Feb 2024 10:21:44 +0100 Subject: [PATCH] ci: reintroduce x86-64 test for non-SSE environment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Kröning --- .github/workflows/ci.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 786c59a..50295b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -162,6 +162,21 @@ jobs: - name: Run tests without any features enabled (core-only) run: cargo test --verbose --no-default-features + # This job uses a target to build the memchr crate on x86-64 but *without* + # SSE/AVX target features. This is relevant for virtually all OS kernels. + build-for-x86-64-but-non-sse-target: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + - name: Install Rust + uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + targets: x86_64-unknown-none + - name: Run with only 'alloc' enabled + run: cargo build --verbose --no-default-features --features alloc --target x86_64-unknown-none + # This job runs a stripped down version of CI to test the MSRV. The specific # reason for doing this is that dev-dependencies tend to evolve more quickly. # There isn't as tight of a control on them because, well, they're only used