From 7d275100bf460969ffe8b31a5a660e41d2e73b74 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Sun, 13 Nov 2022 21:21:24 -0700 Subject: [PATCH] CI: fix `build-simd` job (#436) The `RUSTFLAGS` were getting applied to build scripts, which caused them to crash with SIGILL. According to this issue, RUSTFLAGS won't be applied to build scripts when cross-compiling by passing the `--target` attribute: https://github.com/rust-lang/cargo/issues/4423 This attempts to work around the problem by explicitly passing: --target x86_64-unknown-linux-gnu --- .github/workflows/rust.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cf49475..a373d9b 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -38,10 +38,10 @@ jobs: # Build with AVX2 features, then with AVX512 features - env: RUSTFLAGS: "-C target_feature=+avx2" - run: cargo build --no-default-features --features "std simd_backend" + run: cargo build --target x86_64-unknown-linux-gnu --features simd_backend - env: RUSTFLAGS: "-C target_feature=+avx512ifma" - run: cargo build --no-default-features --features "std simd_backend" + run: cargo build --target x86_64-unknown-linux-gnu --features simd_backend test-defaults-serde: name: Test default feature selection and serde