diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6165dad..bb88ec4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: