Skip to content

Commit

Permalink
Cache Brew packages for MacOS build on CircleCI
Browse files Browse the repository at this point in the history
We use a hardcoded path to the brew package cache. In case it ever changes, there is a step above that prints what it should be.
  • Loading branch information
DanRStevens committed Mar 7, 2025
1 parent 660a5a4 commit 4056a3f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,17 @@ commands:
brew-install:
description: "Brew install MacOS dependencies (or restore from cache)"
steps:
- run: brew --cache
- restore_cache:
name: Restore Brew package cache
keys:
- brew-packages-{{ checksum "BrewDeps.txt" }}
- run: make install-dependencies
- save_cache:
name: Save Brew package cache
key: brew-packages-{{ checksum "BrewDeps.txt" }}
paths:
- /Users/distiller/Library/Caches/Homebrew
build-and-test:
steps:
- run: make --keep-going --jobs 16 CXXFLAGS_EXTRA="-Werror"
Expand Down

0 comments on commit 4056a3f

Please sign in to comment.