Skip to content

CI: build for generic x86-64, not the runner's CPU - #134

Merged
milindsrivastava1997 merged 1 commit into
mainfrom
ci-portable-cpu
Oct 4, 2026
Merged

milindsrivastava1997 merged 1 commit into
mainfrom
ci-portable-cpu

Conversation

@milindsrivastava1997

Copy link
Copy Markdown
Contributor

main and #131 fail in test with psm v0.1.31 build script: SIGILL (illegal instruction).

.cargo/config.toml sets target-cpu=native, and CI shares target/ and sccache across runners, so a build script compiled on one runner's CPU can run on an older one. Setting RUSTFLAGS in the workflow overrides the config for CI only; cargo and sccache include the flags in their cache keys, so stale native artifacts aren't reused. Nothing in the workspace uses target_feature, and local builds stay native.

🤖 Generated with Claude Code

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 <noreply@anthropic.com>
@milindsrivastava1997
milindsrivastava1997 merged commit c9ae0f6 into main Oct 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant