Repository navigation
ci: build the app arm64-only so releases ship again - #123
Merged
Merged
Conversation
The Release and DMG workflows have failed on every run since 2026-05-13 with
error: static method 'zeros(_:type:stream:)' requires that 'Float16'
conform to 'HasDType'
so no release binary has shipped in almost three months — users are still on
b648, which is why issue #112 was reported against it.
Cause: both workflows build SwiftBuddy with xcodebuild -destination
"generic/platform=macOS", which defaults to a universal (arm64 + x86_64)
build. Float16 does not conform to HasDType on x86_64, and an Float16 usage
added to mlx-swift-lm's SwitchLayers in mid-May made the x86_64 slice fail
to compile. Reproduced locally with swift build --triple x86_64-apple-macosx.
CI proper never caught it because build_and_unit_test uses plain swift build,
which is arm64-only.
Pin ARCHS=arm64 in both invocations. MLX requires Apple Silicon, so an
x86_64 slice was never functional — it only had to compile. Verified locally
with the exact workflow command: BUILD SUCCEEDED.
Co-Authored-By: Claude Opus 5 <[email protected]>
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.
The Release and Build-DMG workflows have failed on every run since 2026-05-13:
No release binary has shipped in almost three months — users are still on b648, which is why #112 was reported against it. Every fix merged this week is invisible to release-binary users until this lands.
Cause
Both workflows build SwiftBuddy with
xcodebuild -destination "generic/platform=macOS", which defaults to a universal (arm64 + x86_64) build.Float16: HasDTypedoes not hold on x86_64, and aFloat16usage added to mlx-swift-lm'sSwitchLayers.swift:1004in mid-May made the x86_64 slice fail to compile — last green run May 8, first red May 13.CI proper never caught it:
build_and_unit_testuses plainswift build, which is arm64-only. Reproduced locally withswift build --triple x86_64-apple-macosx14.0(same error, same line).Fix
Pin
ARCHS=arm64 ONLY_ACTIVE_ARCH=NOin bothxcodebuildinvocations. MLX requires Apple Silicon, so the x86_64 slice was never functional — it only had to compile, and now it doesn't have to.Verification
Ran the exact workflow command locally (generate_xcodeproj → xcodebuild with the new flags, unsigned, same TARGET_BUILD_DIR shape): BUILD SUCCEEDED.
Note:
release.ymlisworkflow_dispatch-gated, so the real proof needs a manual dispatch after merge — the DMG workflow will also run automatically on the nextSwiftBuddy/**change.🤖 Generated with Claude Code