Skip to main content

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

  1. Log in to Bitrise and select Bitrise CI on the left, then select your project.

  2. Click the Workflows button on the main page.

  3. Add the Bitrise Build Cache for Bazel Step to your Workflow.

    The Step requires no configuration.

  • Open the bitrise.yml file and add the activate-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.