Commit a470a1a
authored
feat: build macOS binaries natively for V8 code cache (#1014)
## Summary
Build macOS binaries natively instead of cross-compiling from Linux.
This enables fossilize 0.6.0's V8 code cache for macOS binaries, giving
~15% faster startup.
### Changes
**Build matrix:**
- `darwin-arm64`: `ubuntu-latest` → `macos-latest` (arm64, can smoke
test)
- `darwin-x64`: `ubuntu-latest` → `macos-13` (last Intel runner)
- Linux and Windows targets unchanged (still cross-compiled from
ubuntu-latest)
**Codesign setup:**
- Platform-aware rcodesign download (Linux musl, macOS arm64, macOS x64)
- SHA256-pinned binaries for all three platforms
- `shasum -a 256 -c` works on both Linux and macOS (replaces
`sha256sum`)
### Code cache coverage after this PR
| Target | Runner | Code Cache | Startup Improvement |
|--------|--------|-----------|-------------------|
| linux-x64 | ubuntu-latest | Yes | ~15% |
| darwin-arm64 | macos-latest | **Yes (new)** | ~15% |
| darwin-x64 | macos-13 | **Yes (new)** | ~15% |
| linux-arm64 | ubuntu-latest | No (cross-compiled) | — |
| windows-x64 | ubuntu-latest | No (cross-compiled) | — |1 parent 13ef543 commit a470a1a
2 files changed
Lines changed: 82 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
| 85 | + | |
85 | 86 | | |
86 | | - | |
| 87 | + | |
| 88 | + | |
87 | 89 | | |
88 | | - | |
89 | | - | |
90 | | - | |
| 90 | + | |
| 91 | + | |
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
| 265 | + | |
264 | 266 | | |
265 | | - | |
266 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
267 | 280 | | |
268 | 281 | | |
269 | 282 | | |
| 283 | + | |
270 | 284 | | |
271 | 285 | | |
272 | 286 | | |
| |||
0 commit comments