Configuring the Bitrise Build Cache for Bazel in the Bitrise CI environment
You can use the Bitrise Build Cache for Bazel on the Bitrise CI by adding our dedicated Step to your Workflow. The Step activates the Bitrise Build Cache. After it executes, Bazel builds will automatically read from the build cache and push new entries if it's enabled.
Workflow Editor
bitrise.yml
-
Log in to Bitrise and select Bitrise CI on the left, then select your project.
-
Click the
button on the main page. -
Add the Bitrise Build Cache for Bazel Step to your Workflow.
The Step requires no configuration.
-
Open the
bitrise.yml
file and add theactivate-build-cache-for-bazel
Step to your Workflow.The Step requires no configuration.
your-workflow: steps: - git-clone: {} - activate-build-cache-for-bazel:
During your first build, outputs will be saved to cache. We recommend running a couple of builds to ensure the cache is warmed up.