Add on-demand Apple compile CI job (label-triggered) - #241
Merged
Conversation
The ubuntu-only ci.yaml cannot build the iOS/macOS targets — Kotlin/Native does not cross-compile them off a Mac — so Apple was exercised only at publish time. Add a macOS job that compiles every Apple target (main + test) on demand: apply the `ci-apple` label to a PR, or trigger it manually. Gated on the label so ordinary pushes don't spend macOS minutes. Co-Authored-By: Claude Opus 4.8 <[email protected]>
monkopedia-reviewer
approved these changes
Jul 10, 2026
monkopedia-reviewer
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed to tier-1 standard. Clean infra addition: single-file CI workflow, correct label-gated trigger, macos-latest runner, JDK 21 temurin + setup-gradle + konan cache all matching ci.yaml conventions, 5 Apple targets compiled (main+test) with no simulator required. No secrets, no publish automation, no scope creep. All 6 CI checks green including the apple job itself (5m26s on macos-latest). Approving.
This was referenced Jul 15, 2026
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.
What
Adds
.github/workflows/ci-apple.yml— a macOS CI job that compiles every Apple target (iOS + macOS, main + test source sets) across all modules.Why
The existing
ci.yamlruns onubuntu-latestand builds only jvm + linuxX64 + apiCheck + compiler tests. Kotlin/Native can't cross-compile Apple targets off a Mac (kotlin.native.enableKlibsCrossCompilation=false), so iOS/macOS were compiled only at publish time on the macOS runner — a blind spot where an Apple-only breakage (e.g. a missing/misplacedactual) wouldn't surface until release. This closes that gap on demand.Trigger
Gated on a
ci-applelabel (orworkflow_dispatch) so ordinary pushes don't spend macOS minutes:ci-applelabel to a PR that touches Apple sources, orCompiles (does not link/run) so it needs no simulator; it resolves expect/actual and catches source-level breakage.
This PR is itself labeled
ci-appleto smoke-test the workflow against currentmain.