Skip to content

fix(bin): ship the macOS binary again and prebuild micro.sfx for macOS and Windows - #194

Merged
roxblnfk merged 1 commit into
1.xfrom
build/prebuilt-micro
Dec 2, 2026
Merged

roxblnfk merged 1 commit into
1.xfrom
build/prebuilt-micro

Conversation

@roxblnfk

@roxblnfk roxblnfk commented Dec 2, 2026 •

Copy link
Copy Markdown
Member

What was changed

  • The macOS binary builds again: its job moved from macos-14, which GitHub no longer serves, to macos-15. 1.19.2 shipped without darwin-arm64 because that job was cancelled within seconds.
  • micro.sfx for 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.env holds 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.
  • The builder sources moved from docker/bin-builder to .github/bin-builder, out of the repository root.

How it works

  • A change under .github/bin-builder rebuilds the Linux image and both micro.sfx files; each fails when an extension of micro.env is not loaded.
  • A push to 1.x tags them 1-<platform> and 1-<sha>-<platform>; a pull request pushes pr-<n>-<platform>.
  • A release pulls 1-macos-arm64 and 1-windows-x64 with ORAS and concatenates micro.sfx with dload.phar, which is all spc micro:combine does 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

  • Until the first build on 1.x pushes 1-macos-arm64 and 1-windows-x64, a release fails to pull them: merge this and wait for the builder workflow before cutting a release.
  • The new dload/micro package starts private, like dload/bin-builder; the release jobs pull it with GITHUB_TOKEN and packages: read.

Checklist

  • No issue.
  • Tested
    • Tested manually
    • Unit tests added
    • The builder workflow runs on this pull request and pushes pr-<n>-<platform>; the release jobs run only on a release
  • Documentation: not needed, nothing user-facing changes beyond the macOS binary returning

@codecov

codecov Bot commented Dec 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roxblnfk
roxblnfk force-pushed the build/prebuilt-micro branch 3 times, most recently from 75f3e7a to b6f2e6d Compare December 2, 2026 06:54
…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
roxblnfk force-pushed the build/prebuilt-micro branch from b6f2e6d to 426afa6 Compare December 2, 2026 07:25
@roxblnfk
roxblnfk merged commit 69ac8f6 into 1.x Dec 2, 2026
29 checks passed
@roxblnfk
roxblnfk deleted the build/prebuilt-micro branch December 2, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant