Add macOS release builds using native runners#18
Open
kaelig wants to merge 4 commits intotobi:masterfrom
Open
Conversation
Darwin targets can't be cross-compiled from Linux, so build them natively on macOS runners (macos-13 for x86_64, macos-latest for aarch64). This restores the missing try-darwin-*.tar.gz release assets. Fixes tobi#14 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The cross-compile job was producing try-{arch}-{os} names (e.g.
try-x86_64-linux) but the README expects try-{os}-{arch} (e.g.
try-linux-x86_64). This naming regression was introduced when the
workflows were consolidated into ci.yml.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
macos-13 (the last Intel runner) has been retired from GitHub Actions. Instead, cross-compile for x86_64 on the Apple Silicon runner using clang -arch x86_64, which works out of the box with the macOS SDK. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Keep cross-compile job unchanged — the naming inconsistency is a separate concern from the missing macOS builds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Summary
Restores macOS release builds that were removed in 59da0b0.
How the regression happened
The original
build.yml(still visible at v1.4.1) built macOS binaries natively on macOS runners. When the workflows were consolidated intoci.yml, all builds were moved to a singleubuntu-latestrunner using Nix cross-compilation. Nix can't cross-compile Darwin targets from Linux runners, so when the Darwin builds failed in CI, they were removed entirely in 59da0b0 rather than being moved back to native macOS runners.What this PR does
Adds a
build-macosjob that builds Darwin binaries natively onmacos-latest. The aarch64 build compiles natively; the x86_64 build cross-compiles viaclang -arch x86_64.Verified
Triggered a test release on my fork — CI run here. All build and release jobs passed (the FlakeHub/AUR publish jobs failed as expected since they need upstream secrets):
Fixes #14
🤖 Generated with Claude Code