Build the macOS turbo extension for arm64 only - #6407
Merged
Conversation
setup-php no longer supports Intel macOS runners, so the x86_64 slice of
the universal binary cannot be built any more. Drop the macos-15-intel
compile leg and the turbo-macos-universal job that merged the two slices
with lipo; the macos-arm64 leg now uploads a phpstan_turbo-* artifact
directly, ad-hoc signed in place, and the dist layout gains a
macos-arm64/ directory in place of macos/.
TurboExtensionSelector resolves Darwin to that directory only when
php_uname('m') reports arm64. An x86_64 PHP - native Intel, or an Intel
build running under Rosetta on Apple Silicon, which reports x86_64 as
well - gets no binary, as it could not load an arm64 one anyway.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PNSsTrrmeGmkCDA4VR72tt
This was referenced Sep 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
setup-php no longer supports Intel macOS runners, so the x86_64 slice of the universal binary cannot be built any more. This drops the
macos-15-intelcompile leg and theturbo-macos-universaljob that merged the two slices withlipo. Themacos-arm64leg now uploads aphpstan_turbo-*artifact directly, ad-hoc signed in place, and the dist layout gains amacos-arm64/directory in place ofmacos/.TurboExtensionSelectorresolves Darwin to that directory only whenphp_uname('m')reportsarm64. An x86_64 PHP (native Intel, or an Intel build running under Rosetta on Apple Silicon, which reportsx86_64as well) gets no binary, as it could not load an arm64 one anyway.Counterpart in phpstan/phpstan (merge after this one, so the first phar.yml run stages
macos-arm64/before the oldmacos/directory is removed): release workflow packages the arm64 darwin PIE asset only and drops the stale universal binaries.🤖 Generated with Claude Code
https://claude.ai/code/session_01PNSsTrrmeGmkCDA4VR72tt