Repository navigation
Speed up CI by cutting macOS queueing and cold builds - #352
Merged
Merged
Conversation
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.
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.
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).