CI: cache Maven, Gradle, CocoaPods and bump action versions#4834
Merged
shai-almog merged 1 commit intomasterfrom Apr 30, 2026
Merged
CI: cache Maven, Gradle, CocoaPods and bump action versions#4834shai-almog merged 1 commit intomasterfrom
shai-almog merged 1 commit intomasterfrom
Conversation
Caches dependency downloads that were previously refetched on every
run, and updates several workflows from deprecated checkout@v1/v2 and
setup-java@v1 to v4 (with built-in Maven cache).
- iOS workflows (scripts-ios, scripts-ios-native, ios-packaging):
cache ~/.m2/repository and ~/Library/Caches/CocoaPods + user gems;
skip the cocoapods gem install on cache hit.
- scripts-android: cache ~/.m2/repository and ~/.gradle/{caches,wrapper},
matrix-keyed so JDK 8/17/21 rows don't fight over the same cache.
- pr.yml: checkout@v1 -> v4.
- ant.yml: checkout@v1 -> v4, setup-java@v1 -> v4 with cache: 'maven'.
- designer.yml: setup-java@v1 -> v4 with cache: 'maven'; cache
cn1-binaries and skip the wget+unzip on cache hit.
- release-on-maven-central.yml: checkout@v2 -> v4, setup-java@v1 -> v4
with cache: 'maven'.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
Collaborator
|
Compared 85 screenshots: 85 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
Benchmark ResultsDetailed Performance Metrics
|
Collaborator
|
Compared 85 screenshots: 85 matched. Benchmark Results
Build and Run Timing
Detailed Performance Metrics
|
4 tasks
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
Reduces CI run time (especially on macOS runners) by caching dependency downloads that were previously refetched on every build, and bumps several workflows off deprecated
actions/checkout@v1/@v2andactions/setup-java@v1.No coverage changes — every test that runs today still runs.
Changes per workflow
scripts-ios.yml,scripts-ios-native.yml,ios-packaging.yml~/.m2/repository(was missed —setup-workspace.shwas redownloading every Maven dep on every run).~/Library/Caches/CocoaPods,~/.cocoapods/repos, and~/.gemso CocoaPods spec mirror and thecocoapods/xcodeprojgems persist.gem install cocoapods xcodeprojwhenpodis already on PATH from the restored cache.scripts-android.yml~/.m2/repositoryand~/.gradle/{caches,wrapper}.matrix.id) so JDK 8 / 17 / 21 rows don't pollute each other.pr.ymlactions/checkout@v1→@v4(v1 doesn't shallow-clone and is significantly slower).ant.ymlactions/checkout@v1→@v4.actions/setup-java@v1→@v4withcache: 'maven'(was missing entirely).tests/all.shandmaven/integration-tests/all.sh(archetype roundtrip, kotlin app, googlemaps demo, native interfaces, css fonts, migrations) which aren't covered elsewhere.designer.ymlactions/setup-java@v1→@v4withcache: 'maven'.../cn1-binaries; skip thewget master.zip+unzipon cache hit.release-on-maven-central.ymlactions/checkout@v2→@v4,actions/setup-java@v1→@v4withcache: 'maven'.Cache key strategy
hashFiles('**/pom.xml')with a prefixrestore-keysfallback so partial restores still help when poms change.build.gradle*+ wrapper hashes; matrix-scoped on Android.setup-workspace.shhash — stable across builds since the gem versions don't drift.runner.osso Linux and macOS warm independently.Expected savings (rough, after first warm run)
Test plan
yaml.safe_load).Cache restored from key:lines appear in step logs and step durations drop.matrix.idshould write its own key).gem install(look forpod --versionsucceeding without a preceding install).🤖 Generated with Claude Code