Skip to content
Snippets Groups Projects
Verified Commit 85253ddc authored by Bryan R's avatar Bryan R
Browse files

Cache brew and the things it installs

parent 6db1410b
No related branches found
No related tags found
No related merge requests found
......@@ -100,6 +100,9 @@ build-aarch64-darwin:
expire_in: 2 week
paths:
- out/*
cache:
paths:
- .brew
build-x86_64-windows:
extends: .build
......
......@@ -6,10 +6,11 @@ set -Eeuo pipefail
# FIXME: Use brew in supported way. See
# https://docs.brew.sh/Installation#untar-anywhere-unsupported
brew_dir="${CI_PROJECT_DIR}/.brew"
# Temporarily? ensure there's no caching accidentally happening.
rm -fr "${brew_dir}"
mkdir -p "${brew_dir}"
curl -L "https://github.com/Homebrew/brew/archive/refs/tags/${BREW_VERSION}.tar.gz" | tar xz --strip 1 -C "${brew_dir}"
if [ ! -e "${brew_dir}" ]; then
mkdir -p "${brew_dir}"
curl -L "https://github.com/Homebrew/brew/archive/refs/tags/${BREW_VERSION}.tar.gz" | tar xz --strip 1 -C "${brew_dir}"
fi
export PATH="${brew_dir}/bin:${brew_dir}/sbin:$PATH"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment