macOS installers on the Mac runner (Matou/coa#169) #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "mac-stage"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Brings the macOS installers back to the Forgejo build (Matou/coa#169; macOS was paused by coa ADR 0010 for want of a Mac).
What it does
build-mac.yml(new) builds<slug>-<ver>-mac-x64.dmgand-mac-arm64.dmg, unsigned, on themacos-x64runner and uploads them to the COA server itself. It never sends a callback.build.ymldispatches it right afterprepare, with the ref it resolved and a start deadline. Once its own three installers are uploaded it waits for the DMGs — until both are served, the Mac build ends, the start deadline passes with no runner having taken the job, or 40 minutes at most — then reports with whichever DMGs arrived.coa-build.shruns on both hosts (sha256, Go download, docker fallback) and keeps host state underCOA_BASE.Why a separate workflow
The Mac is a laptop. A job waiting for an absent runner inside the build run would keep that run alive, and the
coa-buildconcurrency group would queue every later build behind it.Proven
composite-smoke, proof mode), 10 minbuild-mac.yml, and the Mac picks it up inside the start windowscripts/forgejo/tests/coa-build-mac-test.sh, 39 checks, offlineNot yet proven
The live path end to end — DMGs uploaded while a real build is in flight, then listed by the callback. That needs this on
mainand one real build of a demo community.Found on the way
--mac --arm64and packages for the host's arch; the GitHub workflow only worked because each arch had its own host. Uses-T darwin -A <arch>.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.