Commit b455533
committed
fix(ci): align local builds with release target-cpu, drop native flag
The .cargo/config.toml setting target-cpu=native created a dev/release
divergence: local binaries used whatever instructions the dev's host CPU
supported (AVX-512 on modern hardware), while published binaries are
capped at x86-64-v3. CI tests inherited the native flag too, occasionally
producing SIGILL on GH Actions runners whose CPUs reported features the
container couldn't actually execute.
Switch to a per-cfg setting: x86_64 dev builds use target-cpu=x86-64-v3
to match the released Linux/Windows binaries; aarch64 dev builds inherit
rustc defaults to match the released macOS binary. Local dev experience
now reflects what users actually run.1 parent 07e560b commit b455533
2 files changed
Lines changed: 15 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments