# Configuring the build cache for Bazel in the Bitrise CI environment

You can use the Bitrise [Build Cache for Bazel](https://github.com/bitrise-steplib/bitrise-step-activate-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.

You can also set this up with an AI coding agent instead of following the steps manually. See [Getting started with AI](/bitrise-build-cache/getting-started-with-the-build-cache/getting-started-with-ai).

  

**Workflow Editor**

  1. 1. Log in to Bitrise and select **Bitrise CI** on the left, then select your project.
1. Click the **Workflows** button on the main page.
  1. Add the **Bitrise [Build Cache for Bazel](https://github.com/bitrise-steplib/bitrise-step-activate-build-cache-for-bazel)** Step to your Workflow.

     The Step requires no configuration.

  
  

**Configuration YAML**

  1. Open the `bitrise.yml` file and add the `activate-build-cache-for-bazel` Step to your Workflow.

     The Step requires no configuration.

     ```yaml
     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.
