File tree 2 files changed +16
-3
lines changed
2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,15 @@ build-aarch64-darwin:
94
94
TARBALL_ARCHIVE_SUFFIX : aarch64-darwin
95
95
TARBALL_EXT : tar.xz
96
96
ADD_CABAL_ARGS : " "
97
+ # Update periodically.
98
+ BREW_VERSION : 4.0.5
97
99
artifacts :
98
100
expire_in : 2 week
99
101
paths :
100
102
- out/*
103
+ cache :
104
+ paths :
105
+ - .brew
101
106
102
107
build-x86_64-windows :
103
108
extends : .build
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- set -Eeuxo pipefail
3
+ set -Eeuo pipefail
4
4
5
5
# Install brew locally in the project dir. Packages will also be installed here.
6
- [ -e " $CI_PROJECT_DIR /.brew" ] || git clone --depth=1 https://github.com/Homebrew/brew $CI_PROJECT_DIR /.brew
7
- export PATH=" $CI_PROJECT_DIR /.brew/bin:$CI_PROJECT_DIR /.brew/sbin:$PATH "
6
+ # FIXME: Use brew in supported way. See
7
+ # https://docs.brew.sh/Installation#untar-anywhere-unsupported
8
+ brew_dir=" ${CI_PROJECT_DIR} /.brew"
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
14
+
15
+ export PATH=" ${brew_dir} /bin:${brew_dir} /sbin:$PATH "
8
16
9
17
# make sure to not pollute the machine with temp files etc
10
18
mkdir -p $CI_PROJECT_DIR /.brew_cache
You can’t perform that action at this time.
0 commit comments