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:
-
Open your app on Bitrise.
-
Click the
button on the main page. -
On the Workflows & Pipelines pages, you can:
-
Click the bitrise.yml tab of the Workflow Editor.
button to get to the -
Click the
button next to the name of any Workflow to open it in the Workflow Editor.
-
-
Click the
button next to the name of the Workflow.
-
Add or select (if it's already part of the Workflow) the Brew install Step.
-
Set the Cache option to
yes
. -
As always, click Save.