File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,9 @@ build-aarch64-darwin:
100
100
expire_in : 2 week
101
101
paths :
102
102
- out/*
103
+ cache :
104
+ paths :
105
+ - .brew
103
106
104
107
build-x86_64-windows :
105
108
extends : .build
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ set -Eeuo pipefail
6
6
# FIXME: Use brew in supported way. See
7
7
# https://docs.brew.sh/Installation#untar-anywhere-unsupported
8
8
brew_dir=" ${CI_PROJECT_DIR} /.brew"
9
- # Temporarily? ensure there's no caching accidentally happening.
10
- rm -fr " ${brew_dir} "
11
- mkdir -p " ${brew_dir} "
12
- curl -L " https://github.com/Homebrew/brew/archive/refs/tags/${BREW_VERSION} .tar.gz" | tar xz --strip 1 -C " ${brew_dir} "
9
+
10
+ if [ ! -e " ${brew_dir} " ]; then
11
+ mkdir -p " ${brew_dir} "
12
+ curl -L " https://github.com/Homebrew/brew/archive/refs/tags/${BREW_VERSION} .tar.gz" | tar xz --strip 1 -C " ${brew_dir} "
13
+ fi
13
14
14
15
export PATH=" ${brew_dir} /bin:${brew_dir} /sbin:$PATH "
15
16
You can’t perform that action at this time.
0 commit comments