Skip to content

Commit

Permalink
ci/macOS: on macOS 12 do not upgrade existing packages
Browse files Browse the repository at this point in the history
Signed-off-by: Bindea Cristian <[email protected]>
  • Loading branch information
bindea-cristian committed Sep 23, 2024
1 parent bce840f commit ebc2bb7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions ci/macOS/install_macos_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,16 @@ install_packages() {
rm /usr/local/bin/python3-config || true

brew update
brew upgrade || true #ignore homebrew upgrade errors
# Workaround for brew taking a long time to upgrade existing packages
# Check if macOS version and upgrade packages only if the version is greater than 12
if (( $(echo "$(sw_vers -productVersion) > 12.0" | bc -1) )); then
brew upgrade --display-times || true #ignore homebrew upgrade errors
brew install --display-times $PACKAGES
else
HOMEBREW_NO_AUTO_UPDATE=1 brew install --display-times $PACKAGES
fi

brew search ${QT_FORMULAE}
brew install --display-times $PACKAGES
for pkg in gcc bison gettext cmake python; do
brew link --overwrite --force $pkg
done
Expand Down

0 comments on commit ebc2bb7

Please sign in to comment.