Skip to content

Speed up CI by cutting macOS queueing and cold builds - #352

Merged
prof18 merged 2 commits into
masterfrom
ci-speedup
Nov 8, 2026
Merged

prof18 merged 2 commits into
masterfrom
ci-speedup

Conversation

@prof18

@prof18 prof18 commented Nov 8, 2026

Copy link
Copy Markdown
Owner

Cancels superseded runs, builds the Apple samples in one macOS job, runs the sample builds alongside the tests, and moves the JVM, Android and web tests to Linux. The konan cache is now keyed on the Kotlin version, and Gradle parallel builds and the build cache are on. The required status checks on master need updating to the new job names (Run JVM, Android and web tests; Run Apple tests and klib API check; Build Apple Samples).

Most of the 25-33 minute runs were spent waiting for macOS runners and
rebuilding from a cold cache, not testing.

- Cancel superseded runs on the same branch or PR.
- Build the four Apple samples in one macOS job instead of four.
- Run the sample builds alongside the tests instead of after them.
- Run JVM, Android, JS and Wasm tests on Linux; keep only the Apple
  tests and the klib API check on macOS. The x64 test binaries, whose
  tests were skipped on arm64 runners, are no longer linked.
- Key the konan cache on the Kotlin version with a restore key, so a
  dependency bump no longer downloads the toolchain again; drop it from
  Linux jobs, which never use it.
- Enable Gradle parallel execution and the build cache, raise the heap
  to 4 GB, and drop the deprecated gradle-home-cache-cleanup input.
The source set is jvmAndroidTest, but the directory was JvmAndroidTest.
macOS file systems ignore case, so the CI that ran only on macOS never
noticed; on Linux the JVM and Android tests failed to compile with
NO_ACTUAL_FOR_EXPECT for readFileFromResources.
@prof18
prof18 merged commit 24de516 into master Nov 8, 2026
8 checks passed
@prof18
prof18 deleted the ci-speedup branch November 8, 2026 16:39
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