fix(ci): speculative fix for Homebrew failing on CI

This commit is contained in:
Christopher Willis-Ford 2022-08-11 18:20:00 -07:00
parent 9032a013c8
commit 4b12ce4d15
2 changed files with 3 additions and 4 deletions

View file

@ -31,7 +31,6 @@ jobs:
command: |
# CACHE_ARCHIVE must match the path in save_cache
CACHE_ARCHIVE="/tmp/visual-studio-mac-v3.tar.gz"
export HOMEBREW_NO_AUTO_UPDATE=1 # for speed
bash ./.circleci/install-or-extract-vs-mac.sh "$CACHE_ARCHIVE"
- save_cache:
key: visual-studio-mac-v3

View file

@ -1,7 +1,7 @@
#!/bin/bash
set -e
CACHE_ARCHIVE="$1"
VS_INSTALLER="/usr/local/Caskroom/visual-studio/17.0.4.5/Install Visual Studio for Mac.app"
VS_INSTALLER="/usr/local/Caskroom/visual-studio/17.3.0.215/Install Visual Studio for Mac.app"
VS_MANIFEST="$HOME/Library/Caches/VisualStudioInstaller/downloads/InstallationManifest.json"
# This helps reduce log output from `tar -v` and similar without eliminating their output entirely.
@ -29,8 +29,8 @@ function install_vs() {
VS_TMP="$(mktemp -d -t vs-installers)"
echo "Installing Homebrew packages..."
brew tap homebrew/cask-versions
brew install visual-studio jq
brew tap -v homebrew/cask-versions
brew install -v visual-studio jq
echo "Starting installer app..."
sudo xattr -d -r com.apple.quarantine "$VS_INSTALLER"