Repository navigation
iOS CI: save konan cache only from main, keep caches warm - #425
Merged
Merged
Conversation
PR runs were each saving a ~0.5-0.9 GB ~/.konan cache, eating the repo's 10 GB cache quota, and main's caches were evicted after 7 days without a main run, leaving the next build cold (~10 min of Kotlin/Native setup). Restore the konan cache on every run but only save it from main, and add a weekly scheduled run to keep it warm. Also build arm64 only for the simulator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HaXtEA53r3qLwkjMRLmH4g
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.
Summary
~/.konanon every run but only save it frommain, so PR runs (~0.5–0.9 GB each) don't fill the 10 GB cache quota and evict main's caches.schedule(+workflow_dispatch) so main's caches aren't evicted after 7 days unused (a cold run spends ~10 min on Kotlin/Native setup), and runner/Xcode image changes are caught early.ARCHS=arm64only (the generic simulator destination was also compiling Swift for x86_64).Same change piloted in GalwayBus (joreilly/GalwayBus#123): "Build iOS app" went from 650s cold to 272s with warm caches.
Test plan
🤖 Generated with Claude Code
https://claude.ai/code/session_01HaXtEA53r3qLwkjMRLmH4g