Skip to content

Commit

Permalink
[release/5.0] Add workarounds for brew on old OSX images (#45809)
Browse files Browse the repository at this point in the history
* Add workarounds for brew on old OSX images

* Don't remove openssl directories

* Use azdo env var

* Add logging

Co-authored-by: Santiago Fernandez Madero <safern@microsoft.com>
  • Loading branch information
github-actions[bot] and safern authored Dec 9, 2020
1 parent 96d7aec commit e5587e5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions eng/install-native-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ if [ "$1" = "Linux" ]; then
fi
elif [ "$1" = "OSX" ] || [ "$1" = "tvOS" ] || [ "$1" = "iOS" ]; then
engdir=$(dirname "${BASH_SOURCE[0]}")

# run this only on AzDo
if [ "$BUILD_BUILDNUMBER" != "" ]; then
# workaround for old osx images on hosted agents
# piped in case we get an agent without these values installed
if ! brew_output="$(brew uninstall openssl@1.0.2t 2>&1 >/dev/null)"; then
echo "didn't uninstall openssl@1.0.2t"
else
echo "succesfully uninstalled openssl@1.0.2t"
fi
fi

brew update --preinstall
brew bundle --no-upgrade --no-lock --file "${engdir}/Brewfile"
if [ "$?" != "0" ]; then
Expand Down

0 comments on commit e5587e5

Please sign in to comment.