Skip to main content

Caching Homebrew installers

Abstract

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.

    opening-workflow-editor.png
  3. Select a Workflow from the WORKFLOW dropdown menu.

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

  5. Set the Cache option to yes.

  6. As always, click Save.