Enable gradle build cache for Bitrise builds (#3840)

Read/write to the cache for nightly / release builds, read from the
cache for other builds.
This commit is contained in:
Nik Clayton 2023-07-26 22:54:30 +02:00 committed by GitHub
parent 406152d5b9
commit e35cc2dcef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,9 @@ workflows:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone@8.0: {}
- cache-pull@2.7: {}
- activate-build-cache-for-gradle:
inputs:
- push: 'true'
- install-missing-android-tools:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
@ -51,6 +54,7 @@ workflows:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull@2.7: {}
- activate-build-cache-for-gradle: {}
- install-missing-android-tools:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew
@ -87,6 +91,9 @@ workflows:
run_if: '{{getenv "SSH_RSA_PRIVATE_KEY" | ne ""}}'
- git-clone: {}
- cache-pull@2.7: {}
- activate-build-cache-for-gradle:
inputs:
- push: 'true'
- install-missing-android-tools@3.1:
inputs:
- gradlew_path: $PROJECT_LOCATION/gradlew