Repository navigation
fix(bin): ship the macOS binary again and prebuild micro.sfx for macOS and Windows - #194
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 🚀 New features to boost your workflow:
|
roxblnfk
force-pushed
the
build/prebuilt-micro
branch
3 times, most recently
from
December 2, 2026 06:54
75f3e7a to
b6f2e6d
Compare
…are retired build(bin): prebuild micro.sfx for macOS and Windows The macOS and Windows release jobs spent about 14 minutes each building micro.sfx. The builder workflow now builds it once per change to .github/bin-builder and pushes it to GHCR as an OCI artifact, since these runners have no Linux containers; a release pulls it and concatenates it with the phar, which is what spc micro:combine does without an ini to embed. micro.env holds the spc version, the PHP version and the extension list for all three platforms, which lived in three places, and static-php-cli is pinned rather than taken from its nightly build, which may already be 3.x. The macOS job ran on macos-14, which GitHub no longer serves: it was cancelled within seconds and 1.19.2 shipped without a darwin-arm64 binary. The builder sources move from docker/bin-builder to .github/bin-builder, out of the repository root. Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
roxblnfk
force-pushed
the
build/prebuilt-micro
branch
from
December 2, 2026 07:25
b6f2e6d to
426afa6
Compare
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.
What was changed
macos-14, which GitHub no longer serves, tomacos-15. 1.19.2 shipped withoutdarwin-arm64because that job was cancelled within seconds.micro.sfxfor macOS ARM64 and Windows x64 is prebuilt by the builder workflow and pushed to GHCR as an OCI artifact,ghcr.io/php-internal/dload/micro:1-<platform>. The release jobs pull it and append the phar, so they no longer spend about 14 minutes each building PHP..github/bin-builder/micro.envholds the static-php-cli version, the PHP version and the extension list for all three platforms in one place, and static-php-cli is pinned to 2.8.5 instead of its nightly build.docker/bin-builderto.github/bin-builder, out of the repository root.How it works
.github/bin-builderrebuilds the Linux image and bothmicro.sfxfiles; each fails when an extension ofmicro.envis not loaded.1.xtags them1-<platform>and1-<sha>-<platform>; a pull request pushespr-<n>-<platform>.1-macos-arm64and1-windows-x64with ORAS and concatenatesmicro.sfxwithdload.phar, which is allspc micro:combinedoes without an ini to embed.Why?
The release spent about 15 minutes on macOS and Windows rebuilding the same
micro.sfx, and their extension lists lived apart from the Linux one.Review notes
1.xpushes1-macos-arm64and1-windows-x64, a release fails to pull them: merge this and wait for the builder workflow before cutting a release.dload/micropackage starts private, likedload/bin-builder; the release jobs pull it withGITHUB_TOKENandpackages: read.Checklist
pr-<n>-<platform>; the release jobs run only on a release