From e35cc2dcef268ecf0446ddd7757ba73da16dbc5e Mon Sep 17 00:00:00 2001 From: Nik Clayton Date: Wed, 26 Jul 2023 22:54:30 +0200 Subject: [PATCH] Enable gradle build cache for Bitrise builds (#3840) Read/write to the cache for nightly / release builds, read from the cache for other builds. --- bitrise.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bitrise.yml b/bitrise.yml index a0e36a41b..1a01709ee 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -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