Repository navigation
Commit c65b8ea
committed
ci(cache): scope macOS Nix cache key by target arch
The arm64 and x64 macOS native packages both build on the same arm64
Blacksmith runner (x64 cross-compiles via the multi-arch Apple SDK), so
runner.os and runner.arch are identical for both jobs. They therefore
shared a single cache-nix-action key (`nix-macOS-ARM64-<hash>`) and
clobbered each other's restored store on every run, leaving the Intel
build effectively uncached.
Thread a `cache-key-suffix` input through setup-nix into
setup-macos-nix-cache and pass the target arch from
build-macos-nix-native-package, so build-mac-arm64 and build-mac-x64
get independent cache entries.1 parent 7bcafc9 commit c65b8ea
3 files changed
Lines changed: 18 additions & 3 deletions
File tree
- .github/actions
- build-macos-nix-native-package
- setup-macos-nix-cache
- setup-nix
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
3 | 10 | | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
8 | 15 | | |
9 | | - | |
10 | | - | |
| 16 | + | |
| 17 | + | |
11 | 18 | | |
12 | 19 | | |
13 | | - | |
| 20 | + | |
14 | 21 | | |
15 | 22 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
| |||
0 commit comments