Skip to content

Build native Apple Silicon app alongside Intel in CI - #77

Merged
dangduc merged 2 commits into
masterfrom
codex/apple-silicon-ci
Oct 3, 2026
Merged

dangduc merged 2 commits into
masterfrom
codex/apple-silicon-ci

Conversation

@dangduc

@dangduc dangduc commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

CI previously produced only an Intel app. Add a separate native Apple Silicon job on the standard macos-15 runner with Xcode 16.4, alongside the existing macos-15-intel job. 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 IMP call 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_64 and macos-arm64 names. 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 04e98045cb4d683cdeafbdb49d0488c494666d82 in workflow run 37156136062:

  • Both jobs: 40 CI tests, Org rebuild-failure checks, native callback and search probes, Release and Development builds, app identities, bundled icon resources, ZIP permissions and executable architecture checks. The jobs used macOS 15.7.9 and Xcode 16.4 (16F6).
  • Apple Silicon: rebuilt native OpenSSL and both preview helpers; MD5/AES-256-CBC/PKCS7 checks and all six preview reference comparisons pass on native arm64 hardware.
  • Independently downloaded both final artifacts. lipo confirms 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.
  • Locally on macOS 13.7.8 / Xcode 15.2: 40 CI tests, callback checks for both architectures, Org rebuild-failure checks, native crypto/Markdown probes, and all six downloaded arm64 preview-helper comparisons pass.
Architecture Release ZIP
Apple Silicon (arm64, macOS 11+) Neo-Notational-V-macos-arm64-217-1.zip
Intel (x86_64, macOS 10.13+) Neo-Notational-V-macos-x86_64-217-1.zip

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.

@dangduc
dangduc marked this pull request as ready for review October 3, 2026 22:17
@dangduc
dangduc merged commit 7553c37 into master Oct 3, 2026
4 checks passed
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.

1 participant