A fully functional Android app built entirely with Kotlin and Jetpack Compose
Gradle Configuration Cache on CI
Simon Marquise5f1b842ee8e
diff --git a/.github/ci-gradle.properties b/.github/ci-gradle.propertiesindex dbafa68cd..a9abe496a 100644--- a/.github/ci-gradle.properties+++ b/.github/ci-gradle.properties@@ -17,6 +17,8 @@org.gradle.daemon=falseorg.gradle.parallel=trueorg.gradle.workers.max=2+org.gradle.configuration-cache=true+org.gradle.configuration-cache.parallel=truekotlin.incremental=falsediff --git a/.github/workflows/Build.yaml b/.github/workflows/Build.yamlindex e090e2155..8454da821 100644--- a/.github/workflows/Build.yaml+++ b/.github/workflows/Build.yaml@@ -44,6 +44,8 @@ jobs:- name: Setup Gradleuses: gradle/actions/setup-gradle@v4+ with:+ cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}- name: Setup Android SDKuses: android-actions/setup-android@v3@@ -199,6 +201,8 @@ jobs:- name: Setup Gradleuses: gradle/actions/setup-gradle@v4+ with:+ cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}- name: Build projects and run instrumentation testsuses: reactivecircus/android-emulator-runner@v2diff --git a/.github/workflows/NightlyBaselineProfiles.yaml b/.github/workflows/NightlyBaselineProfiles.yamlindex de626b0a5..a6914b6b5 100644--- a/.github/workflows/NightlyBaselineProfiles.yaml+++ b/.github/workflows/NightlyBaselineProfiles.yaml@@ -36,6 +36,8 @@ jobs:- name: Setup Gradleuses: gradle/actions/setup-gradle@v4+ with:+ cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}- name: Setup Android SDKuses: android-actions/setup-android@v3diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.ymlindex 71ee060e1..149a7bb6f 100644--- a/.github/workflows/Release.yml+++ b/.github/workflows/Release.yml@@ -33,6 +33,8 @@ jobs:- name: Setup Gradleuses: gradle/actions/setup-gradle@v4+ with:+ cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}- name: Setup Android SDKuses: android-actions/setup-android@v3diff --git a/build-logic/gradle.properties b/build-logic/gradle.propertiesindex 1c9073eb9..5e07c65d0 100644--- a/build-logic/gradle.properties+++ b/build-logic/gradle.properties@@ -2,3 +2,5 @@org.gradle.parallel=trueorg.gradle.caching=trueorg.gradle.configureondemand=true+org.gradle.configuration-cache=true+org.gradle.configuration-cache.parallel=truediff --git a/gradle.properties b/gradle.propertiesindex 30c4eae04..2e9d9fc30 100644--- a/gradle.properties+++ b/gradle.properties@@ -39,6 +39,7 @@ org.gradle.caching=true# Enable configuration caching between builds.org.gradle.configuration-cache=true+org.gradle.configuration-cache.parallel=true# This option is set because of https://github.com/google/play-services-plugins/issues/246# to generate the Configuration Cache regardless of incompatible tasks.# See https://github.com/android/nowinandroid/issues/1022 before using it.