Skip to content

buildomat: publish macOS aarch64 binaries - #926

Merged
sunshowers merged 1 commit into
jj-stack/buildomat-fix-the-published-path-of-the-linux-mgadm-binary-xxrsysyzfrom
jj-stack/buildomat-publish-macos-aarch64-mgd-and-ddmd-binaries-nmxkrxsl
Oct 6, 2026
Merged

sunshowers merged 1 commit into
jj-stack/buildomat-fix-the-published-path-of-the-linux-mgadm-binary-xxrsysyzfrom
jj-stack/buildomat-publish-macos-aarch64-mgd-and-ddmd-binaries-nmxkrxsl

Conversation

@sunshowers

@sunshowers sunshowers commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Noticed while doing oxidecomputer/omicron#11417 that Omicron was building mgd and ddmd from scratch on macOS. Cache aarch64 binaries (presumably nobody is using x86_64 binaries?) by building them in GitHub Actions and having a Buildomat job pull from there.

The fetch-gh-artifacts.sh script is copied verbatim from https://github.com/oxidecomputer/cockroach/blob/c6c314d6cfff4b51e1df3355cb72172e45150ceb/.github/buildomat/fetch-gh-artifacts.sh. The script is known to work well. Note that the script doesn't pass shellcheck -o all so we don't add it to the set of scripts to lint in the shellcheck job.

Also build the adm binaries on macOS for parity with Linux, even though Omicron doesn't need them.

@sunshowers
sunshowers added this pull request to stack #927 October 6, 2026 20:23
@david-crespo david-crespo mentioned this pull request Oct 6, 2026
6 tasks
@sunshowers

sunshowers commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor Author

Revision history

Version Changes from previous version Submitted commit
3 (current) 031da017..756b2fed 756b2fed
2 e28fa1c2..031da017 031da017
1 Initial version e28fa1c2

Generated by jj-stack from this pull request's force-push history.

@sunshowers
sunshowers force-pushed the jj-stack/buildomat-publish-macos-aarch64-mgd-and-ddmd-binaries-nmxkrxsl branch from e28fa1c to 031da01 Compare October 6, 2026 22:00
@sunshowers sunshowers changed the title buildomat: publish macOS aarch64 mgd and ddmd binaries buildomat: publish macOS aarch64 binaries Oct 6, 2026
Noticed while doing oxidecomputer/omicron#11417 that Omicron was building mgd and ddmd from scratch on macOS. Cache aarch64 binaries (presumably nobody is using x86_64 binaries?) by building them in GitHub Actions and having a Buildomat job pull from there.

The `fetch-gh-artifacts.sh` script is copied verbatim from https://github.com/oxidecomputer/cockroach/blob/c6c314d6cfff4b51e1df3355cb72172e45150ceb/.github/buildomat/fetch-gh-artifacts.sh. The script is known to work well. Note that the script doesn't pass `shellcheck -o all` so we don't add it to the set of scripts to lint in the shellcheck job.
@sunshowers
sunshowers force-pushed the jj-stack/buildomat-publish-macos-aarch64-mgd-and-ddmd-binaries-nmxkrxsl branch from 031da01 to 756b2fe Compare October 6, 2026 22:02
@sunshowers

Copy link
Copy Markdown
Contributor Author

Tested in https://github.com/oxidecomputer/omicron/actions/runs/37540183776/job/112531015839?pr=11437 -- works great and brings the time down by around 15 minutes. I'll also port over Dendrite next which should bring the time down by another 10 minutes.

@sunshowers
sunshowers merged commit 91ea168 into main Oct 6, 2026
23 of 24 checks passed
@sunshowers
sunshowers deleted the jj-stack/buildomat-publish-macos-aarch64-mgd-and-ddmd-binaries-nmxkrxsl branch October 6, 2026 22:53
sunshowers added a commit to oxidecomputer/omicron that referenced this pull request Oct 7, 2026
Pins maghemite to e28fa1c2, an earlier head of oxidecomputer/maghemite#926,
which is the first commit with macos-aarch64 binaries. Generated by
`tools/update_maghemite.sh -c e28fa1c2b6001aa6cace05eeb567a09491371ab0`.

Redo against maghemite main once that PR merges.
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.

2 participants