Skip to content

Build the macOS turbo extension for arm64 only - #6407

Merged
ondrejmirtes merged 1 commit into
2.2.xfrom
drop-intel-turbo
Sep 10, 2026
Merged

Build the macOS turbo extension for arm64 only#6407
ondrejmirtes merged 1 commit into
2.2.xfrom
drop-intel-turbo

Conversation

@ondrejmirtes

Copy link
Copy Markdown
Member

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-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.

Counterpart in phpstan/phpstan (merge after this one, so the first phar.yml run stages macos-arm64/ before the old macos/ 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

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
@ondrejmirtes
ondrejmirtes merged commit 9f7d822 into 2.2.x Sep 10, 2026
475 of 481 checks passed
@ondrejmirtes
ondrejmirtes deleted the drop-intel-turbo branch September 10, 2026 08:11
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