fix: workflows on gha can run on different cpus, so don't use cpu=native

This commit is contained in:
ktims committed 2026-12-02 15:29:21 -07:00
1 parent 20e084ebad
commit d476b39d79
1 file changed
+4
+4
View File
@@ -16,6 +16,10 @@ on:
env:
CARGO_TERM_COLOR: always
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:
tests: