Skip to main content

Caching Homebrew installers


To enable the caching of Homebrew installers, set the Cache input to yes in the Brew install Step.

Branch-based caching vs key-based caching

This guide is is about legacy, branch-based caching. For key-based caching, check out our in-depth guide: Key-based caching.

You can read about our dedicated key-based caching Steps here: Dedicated caching Steps for dependency managers.

The Brew install Step supports caching: if the option is enabled, any downloaded brew installers will be cached from the location of brew --cache. The cache path is ~/Library/Caches/Homebrew/.

To enable caching of brew installers:

  1. Open your app on Bitrise.

  2. Click the Workflows button on the main page.

  3. On the Workflows & Pipelines pages, you can:

    • Click the Edit bitrise.yml button to get to the bitrise.yml tab of the Workflow Editor.

    • Click the edit-webhook.svg button next to the name of any Workflow to open it in the Workflow Editor.

  4. Open the Workflow Editor.

  5. Add or select (if it's already part of the Workflow) the Brew install Step.

  6. Set the Cache option to yes.

  7. As always, click Save.