Skip to content

Add macOS release builds using native runners#18

Open
kaelig wants to merge 4 commits intotobi:masterfrom
kaelig:fix/add-macos-release-builds
Open

Add macOS release builds using native runners#18
kaelig wants to merge 4 commits intotobi:masterfrom
kaelig:fix/add-macos-release-builds

Conversation

@kaelig
Copy link
Copy Markdown

@kaelig kaelig commented Feb 21, 2026

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 into ci.yml, all builds were moved to a single ubuntu-latest runner 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-macos job that builds Darwin binaries natively on macos-latest. The aarch64 build compiles natively; the x86_64 build cross-compiles via clang -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):

Job Status
Cross-compile (x86_64-linux)
Cross-compile (aarch64-linux)
Build macOS (x86_64)
Build macOS (aarch64)
Create Release

Fixes #14

🤖 Generated with Claude Code

kaelig and others added 3 commits February 21, 2026 00:09
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>
@kaelig kaelig marked this pull request as draft February 21, 2026 08:32
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>
@kaelig kaelig marked this pull request as ready for review February 21, 2026 08:47
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.

try-darwin-aarch64.tar.gz missing from latest release

1 participant