fix: workflows on gha can run on different cpus, so don't use cpu=native
This commit is contained in:
1 file changed
+4
@@ -16,6 +16,10 @@ on:
|
|||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
CARGO_AOC_VERSION: 0.3.8
|
CARGO_AOC_VERSION: 0.3.8
|
||||||
|
# Some years set -C target-cpu=native in .cargo/config.toml. CI caches target/ across runners with different CPUs,
|
||||||
|
# so native builds crash with SIGILL. Setting RUSTFLAGS overrides the config (setup-rust-toolchain with an empty
|
||||||
|
# rustflags input deliberately leaves it unset).
|
||||||
|
RUSTFLAGS: -C target-cpu=generic
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
tests:
|
tests:
|
||||||
|
|||||||
Reference in new issue
Block a user