Skip to content

Commit b85b720

Browse files
committed
CI: fix build-simd job
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: rust-lang/cargo#4423 This attempts to work around the problem by explicitly passing: --target x86_64-unknown-linux-gnu
1 parent 081f632 commit b85b720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/rust.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ jobs:
3838
# Build with AVX2 features, then with AVX512 features
3939
- env:
4040
RUSTFLAGS: "-C target_feature=+avx2"
41-
run: cargo build --no-default-features --features "std simd_backend"
41+
run: cargo build --target x86_64-unknown-linux-gnu --features simd_backend
4242
- env:
4343
RUSTFLAGS: "-C target_feature=+avx512ifma"
44-
run: cargo build --no-default-features --features "std simd_backend"
44+
run: cargo build --target x86_64-unknown-linux-gnu --features simd_backend
4545

4646
test-defaults-serde:
4747
name: Test default feature selection and serde

0 commit comments

Comments
 (0)