Set HOMEBREW_NO_INSTALL_CLEANUP to speedup brew installs (#9713)

This commit is contained in:
Avasam
2023-02-11 14:20:20 -05:00
committed by GitHub
parent 52cf716831
commit 2930f8c6f0
2 changed files with 6 additions and 2 deletions

View File

@@ -18,6 +18,8 @@ concurrency:
cancel-in-progress: true
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Speedup brew install. Environments are isolated, no need to cleanup old versions
NONINTERACTIVE: 1 # Required for brew install on CI
PIP_DISABLE_PIP_VERSION_CHECK: 1
FORCE_COLOR: 1
TERM: xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/mypy/issues/13817
@@ -81,7 +83,7 @@ jobs:
PYTHON_EXECUTABLE="xvfb-run python"
else
if [ "${{ runner.os }}" = "macOS" ] && [ -n "$PACKAGES" ]; then
NONINTERACTIVE=1 brew install $PACKAGES
brew install $PACKAGES
fi
if [ "${{ runner.os }}" = "Windows" ] && [ -n "$PACKAGES" ]; then

View File

@@ -12,6 +12,8 @@ permissions:
contents: read
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1 # Speedup brew install. Environments are isolated, no need to cleanup old versions
NONINTERACTIVE: 1 # Required for brew install on CI
PIP_DISABLE_PIP_VERSION_CHECK: 1
FORCE_COLOR: 1
TERM: xterm-256color # needed for FORCE_COLOR to work on mypy on Ubuntu, see https://github.com/python/mypy/issues/13817
@@ -70,7 +72,7 @@ jobs:
else
if [ "${{ runner.os }}" = "macOS" ] && [ -n "$PACKAGES" ]; then
echo "Installing Homebrew packages: $PACKAGES"
NONINTERACTIVE=1 brew install $PACKAGES
brew install $PACKAGES
fi
if [ "${{ runner.os }}" = "Windows" ] && [ -n "$PACKAGES" ]; then