Skip to content

feat: build macOS binaries natively for V8 code cache#1014

Merged
BYK merged 1 commit into
mainfrom
feat/macos-native-build
May 22, 2026
Merged

feat: build macOS binaries natively for V8 code cache#1014
BYK merged 1 commit into
mainfrom
feat/macos-native-build

Conversation

@BYK
Copy link
Copy Markdown
Member

@BYK BYK commented May 22, 2026

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-latestmacos-latest (arm64, can smoke test)
  • darwin-x64: ubuntu-latestmacos-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)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 22, 2026

Codecov Results 📊

✅ Patch coverage is 100.00%. Project has 4236 uncovered lines.
✅ Project coverage is 81.87%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    81.87%    81.87%        —%
==========================================
  Files          328       328         —
  Lines        23359     23359         —
  Branches     15114     15114         —
==========================================
+ Hits         19123     19123         —
- Misses        4236      4236         —
- Partials      1621      1621         —

Generated by Codecov Action

Comment thread .github/workflows/ci.yml
Build darwin-arm64 on macos-latest and darwin-x64 on macos-13 instead
of cross-compiling from ubuntu-latest. This enables fossilize's V8 code
cache for macOS binaries (~15% faster startup).

Also enables native smoke tests for darwin-arm64 (can-test: true).

rcodesign setup is now platform-aware with SHA256-pinned binaries for
Linux (x86_64-musl), macOS arm64, and macOS x64.
@BYK BYK force-pushed the feat/macos-native-build branch from 78a341e to a97c33b Compare May 22, 2026 21:31
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

There are 3 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit a97c33b. Configure here.

Comment thread .github/workflows/ci.yml
Comment thread .github/workflows/ci.yml
@BYK BYK merged commit a470a1a into main May 22, 2026
25 of 27 checks passed
@BYK BYK deleted the feat/macos-native-build branch May 22, 2026 21:41
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