Skip to content

ci(): build each platform on a native runner - #12

Merged
e7d merged 1 commit into
build/skip-emulated-stagesfrom
ci/native-arm64-runners
Nov 7, 2026
Merged

e7d merged 1 commit into
build/skip-emulated-stagesfrom
ci/native-arm64-runners

Conversation

@e7d

@e7d e7d commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Stacked on #11 (itself on #10): merge those first.

The arm64 image was built under QEMU on the amd64 runner. On the cold build of #9 (run 42357802286), arm64 apt-get install alone took 621s against 111s on amd64, and the run lasted about 17 minutes. #11 takes composer, the minifiers and geoipupdate out of emulation; this PR removes emulation altogether.

What changes

  • build: a matrix job, one native runner per platform (ubuntu-24.04, ubuntu-24.04-arm), each with its own GHA cache scope. It pushes its image by digest to both registries and uploads the digest as an artifact.
  • merge: downloads the digests and runs docker buildx imagetools create once per registry, with the same tags as before (develop/master, the daily YYYYMMDD on schedule, semver on tags).
  • Pull requests: both platforms build without pushing; merge is skipped. arm64 is now actually built on PRs, natively.
  • Actions move to their current majors: checkout@v7, setup-buildx-action@v4, login-action@v4, metadata-action@v6, build-push-action@v7, plus upload-artifact@v7 / download-artifact@v8. The old majors targeted the deprecated Node 20 runtime (the runs warned about it). The breaking notes of these majors touch nothing used here (Node 24 runtime, removed deprecated inputs/envs). setup-qemu-action is gone.

The Forgejo mirror has Actions disabled, so the GitHub-only ubuntu-24.04-arm label does not leave a job queued there.

Checked

  • actionlint 1.7.7: clean.
  • The manifest step, run locally with a stubbed docker and a sample metadata output: each registry gets only its own tags and its own digests; an empty tag list fails the step instead of pushing nothing.
  • Not checked locally: the build itself on GitHub's runners. This PR's own CI exercises the build matrix; merge only runs after the merge into develop, so the first develop push is the first real run of it.

🤖 Generated with Claude Code

The arm64 image was built under QEMU on the amd64 runner. Its
apt-get install alone took 621s against 111s on amd64, which made the
cold build last about 17 minutes.

Each platform now builds on its own runner (ubuntu-24.04 and
ubuntu-24.04-arm) with a per-platform cache scope, pushes by digest,
and a merge job assembles the multi-arch manifest lists under the same
tags as before, on Docker Hub and GHCR. Pull requests build both
platforms without pushing; the merge job does not run for them.

Actions move to their current majors (checkout v7, setup-buildx v4,
login v4, metadata v6, build-push v7); the old ones targeted the
deprecated Node 20 runtime. setup-qemu is no longer needed.
@e7d
e7d added this pull request to stack #13 November 7, 2026 09:25
@e7d
e7d merged commit a03b6a4 into develop Nov 7, 2026
7 checks passed
@e7d
e7d deleted the ci/native-arm64-runners branch November 7, 2026 09:39
@e7d e7d mentioned this pull request Nov 7, 2026
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