Skip to content
Snippets Groups Projects
Commit 4e7f6738 authored by Bryan R's avatar Bryan R Committed by Mergify
Browse files

Cache brew and the things it installs

(cherry picked from commit 85253ddc)
parent eb0b028c
No related branches found
No related tags found
No related merge requests found
...@@ -100,6 +100,9 @@ build-aarch64-darwin: ...@@ -100,6 +100,9 @@ build-aarch64-darwin:
expire_in: 2 week expire_in: 2 week
paths: paths:
- out/* - out/*
cache:
paths:
- .brew
build-x86_64-windows: build-x86_64-windows:
extends: .build extends: .build
......
...@@ -6,10 +6,11 @@ set -Eeuo pipefail ...@@ -6,10 +6,11 @@ set -Eeuo pipefail
# FIXME: Use brew in supported way. See # FIXME: Use brew in supported way. See
# https://docs.brew.sh/Installation#untar-anywhere-unsupported # https://docs.brew.sh/Installation#untar-anywhere-unsupported
brew_dir="${CI_PROJECT_DIR}/.brew" brew_dir="${CI_PROJECT_DIR}/.brew"
# Temporarily? ensure there's no caching accidentally happening.
rm -fr "${brew_dir}" if [ ! -e "${brew_dir}" ]; then
mkdir -p "${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}" 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" 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