mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
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
This commit is contained in:
parent
081f632d91
commit
7d275100bf
1 changed files with 2 additions and 2 deletions
4
.github/workflows/rust.yml
vendored
4
.github/workflows/rust.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue