Skip to content

Commit

Permalink
Add remote Gradle build cache support
Browse files Browse the repository at this point in the history
  • Loading branch information
samer-stripe committed Mar 28, 2024
1 parent 385dd92 commit f2c7a50
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,9 @@ workflows:
before_run:
- start_emulator
- prepare_all
- restore_gradle_output_data
after_run:
- save_gradle_output_data
- conclude_all
steps:
- script@1:
Expand All @@ -227,7 +229,9 @@ workflows:
before_run:
- start_screenshot_emulator
- prepare_all
- restore_gradle_output_data
after_run:
- save_gradle_output_data
- conclude_all
steps:
- script@1:
Expand All @@ -251,7 +255,9 @@ workflows:
before_run:
- start_emulator
- prepare_all
- restore_gradle_output_data
after_run:
- save_gradle_output_data
- conclude_all
steps:
- script@1:
Expand All @@ -271,7 +277,9 @@ workflows:
before_run:
- start_emulator
- prepare_all
- restore_gradle_output_data
after_run:
- save_gradle_output_data
- conclude_all
steps:
- script@1:
Expand Down Expand Up @@ -419,6 +427,10 @@ workflows:
- git-clone@8: { }
- cache-pull@2: { }
- restore-gradle-cache@1: { }
- activate-build-cache-for-gradle:
inputs:
- push: 'true'
- validation_level: warning
- script-runner@0:
# Maven doesn't like java 17, so running it before.
run_if: '{{getenv "NEEDS_ROBOLECTRIC" | ne ""}}'
Expand All @@ -434,6 +446,18 @@ workflows:
- script@1:
inputs:
- content: echo "STRIPE_EXAMPLE_BACKEND_URL=$STRIPE_EXAMPLE_BACKEND_URL" >> ~/.gradle/gradle.properties; echo "STRIPE_EXAMPLE_PUBLISHABLE_KEY=$STRIPE_EXAMPLE_PUBLISHABLE_KEY" >> ~/.gradle/gradle.properties
save_gradle_output_data:
steps:
- script@1:
inputs:
- content: |-
/tmp/bin/bitrise-build-cache save-gradle-output-data
restore_gradle_output_data:
steps:
- script@1:
inputs:
- content: |-
/tmp/bin/bitrise-build-cache restore-gradle-output-data
conclude_all:
steps:
- script-runner@0:
Expand Down

0 comments on commit f2c7a50

Please sign in to comment.