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. On the Workflows & Pipelines pages, you can:

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

    • Select a Workflow from the list of the app's Workflows.

  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.