Skip to content
Commit Detail

Commit e4a4d4d

Author
Felix Hanau <felix@cloudflare.com> 2024-10-10 14:45:11 -0400
Parents
121f993
Tree
f087a60
[CI] macOS build improvements (#2884)

* Use lld to reduce macOS release binary size

* [CI] Use macos-15 image for test job, implicitly transitioning to Apple Silicon

To mitigate our problems with macOS runner rate limiting, switch to the
macos-15 runner image. This means we are implicitly transitioning the test job
to Apple Silicon (macos-13 is x86, macos-15 is Apple Silicon with no x86 option
available outside of paid runners).
This allows us to take advantage of the latest compiler features available in
Xcode 16 (based on LLVM 17), which is not available for macOS 13. Xcode has
good backwards compatibility; based on the macos_minimum_os flag we will
continue to support macOS 13 and later.

Interestingly, the macos-15 build is much faster (~2x based on limited testing),
so this will help avoid having stalled macOS build jobs. This is likely due to
the Apple Silicon CPUs being more performant, although the new compiler version
could also be helping.

The release job continues to use the macos-13/x86 image, so we continue to have
coverage for x86. If this proves to be stable, we can also add an Apple Silicon
release build and decommission the internal arm64 macOS build.

* [nfc] Drop duplicated macOS experimental_objc_fastbuild_options flag

Files changed

3 files changed~3 modified