From d476b39d795565108379f708680598cd2cd04f3f Mon Sep 17 00:00:00 2001 From: Keenan Tims Date: Wed, 2 Dec 2026 15:29:19 -0700 Subject: [PATCH] fix: workflows on gha can run on different cpus, so don't use cpu=native --- .github/workflows/test.yaml | 4 ++++ 1 file changed, 4 insertions(+) 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: