Skip to content

Commit 141bbbb

Browse files
ci: enable gradle build cache (#212)
Enables Gradle build cache to improve CI performance. - Replaces `cache: gradle` in `actions/setup-java` with `gradle/actions/setup-gradle@v4` in `.github/workflows/android.yml`. - Enables build cache in `gradle.properties` by setting `org.gradle.caching=true`. Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
1 parent fe3732f commit 141bbbb

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/android.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ jobs:
3939
with:
4040
java-version: "17"
4141
distribution: "temurin"
42-
cache: gradle
42+
43+
- name: Setup Gradle
44+
uses: gradle/actions/setup-gradle@v4
4345

4446
- name: Build with Gradle
4547
env:

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ org.gradle.jvmargs=-Xmx1024M -Dkotlin.daemon.jvm.options\="-Xmx1024M"
1515
android.useAndroidX=true
1616
#android.nonTransitiveRClass=true
1717
robolectric.dependency.repo.url=https://repo1.maven.org/maven2/
18+
org.gradle.caching=true

0 commit comments

Comments
 (0)