Repository navigation
Build native Apple Silicon app alongside Intel in CI - #77
Merged
Merged
Conversation
dangduc
marked this pull request as ready for review
October 3, 2026 22:17
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.
CI previously produced only an Intel app. Add a separate native Apple Silicon job on the standard
macos-15runner with Xcode 16.4, alongside the existingmacos-15-inteljob. Each job builds Release and Development, executes native search tests for its architecture, validates identities and icon resources, and uploads an unsigned Release ZIP.The arm64 job rebuilds the existing OpenSSL 1.0.2d, MultiMarkdown 4.7.1 and vendored Org helper because their checked-in binaries are Intel-only. Source downloads use immutable revisions and verified SHA-256 hashes; Org uses pinned Rust 1.98.1 with offline vendored dependencies. The rebuilt dependencies are staged only in the disposable CI checkout. Crypto and preview compatibility checks run natively before the app build.
Give the cached preference callback its exact Objective-C method signature; the previous untyped
IMPcall fails to compile on arm64. A focused native check on each architecture verifies receiver, selector, sender and self-exclusion using the production dispatch code.ZIP validation now checks the Mach-O architecture of the app and both preview helpers. Artifacts have separate
macos-x86_64andmacos-arm64names. Both jobs must pass before existing tag/release jobs run. Automatic releases continue to publish the Intel ZIP; the Apple Silicon ZIP is an additional workflow artifact. Signing conventions and the Xcode 26.0.1 icon compiler are unchanged.Validation passed at head
04e98045cb4d683cdeafbdb49d0488c494666d82in workflow run 37156136062:lipoconfirms the app, MultiMarkdown and Org helper are arm64 in the native ZIP and x86_64 in the Intel ZIP. The arm64 payloads target macOS 11.0 and link only system libraries. Both downloaded apps match the checked icon resources.arm64, macOS 11+)x86_64, macOS 10.13+)Native headless tests executed on each matching runner; these results are more than cross-compilation. Full desktop integration suites and GUI app execution are not covered by this CI change. Minimum deployment targets are build metadata, not tests on macOS 10.13 or 11. Both artifacts retain the existing unsigned/unnotarized convention and expire after 30 days.