Skip to content

Commit d07e301

Browse files
ci: Update brew on macOS
The preinstalled brew is very old and tries to download prebuilt bottles from a server which is no longer available. Because that will fail, brew falls back to building our dependencies (e.g., autotools) from source, which takes very long. This commit makes sure that brew is updated before we start the build. We also need to remove the `--shallow` argument from `brew tap`. It doesn't exist in recent brew versions.
1 parent 22382f0 commit d07e301

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.cirrus.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ task:
133133
## - rm /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
134134
##
135135
brew_valgrind_pre_script:
136+
- brew update
136137
- brew config
137-
- brew tap --shallow LouisBrunner/valgrind
138+
- brew tap LouisBrunner/valgrind
138139
# Fetch valgrind source but don't build it yet.
139140
- brew fetch --HEAD LouisBrunner/valgrind/valgrind
140141
brew_valgrind_cache:

0 commit comments

Comments
 (0)