From 33ad17d6e39b9d4ae84c587c401e1dd0510b843c Mon Sep 17 00:00:00 2001 From: Milind Srivastava Date: Sun, 4 Oct 2026 17:33:36 -0400 Subject: [PATCH] CI: build for generic x86-64, not the runner's CPU target-cpu=native in .cargo/config.toml plus the shared target/ and sccache caches let a build script compiled on one runner's CPU run on an older one, where it dies with SIGILL (psm v0.1.31). Co-Authored-By: Claude Opus 5.5 --- .github/workflows/rust.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e47e0fe2..a9aeb816 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,6 +20,9 @@ concurrency: env: CARGO_TERM_COLOR: always + # Overrides target-cpu=native from .cargo/config.toml: cached build scripts + # compiled on one runner's CPU die with SIGILL on an older runner. + RUSTFLAGS: -C target-cpu=x86-64 jobs: format-and-lint: