Commit 94c58fdf authored by Isuru Fernando's avatar Isuru Fernando
Browse files

check to see /Applications/Xcode_12.2.app is available

parent b83a56ac
......@@ -2,9 +2,16 @@
# Wheel build, install, run test steps on OSX
set -e
if ([ "$GITHUB_WORKFLOW" != "" ] || [ "$PIPELINE_WORKSPACE" != "" ]) && [ "$SDKROOT" == "" ] && ([ "$PLAT" == "arm64" ] || [ "$PLAT" == "universal2" ]); then
sudo xcode-select -switch /Applications/Xcode_12.2.app
export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk
if [ "$PLAT" == "arm64" ] || [ "$PLAT" == "universal2" ]; then
if [[ "$(xcrun -show-sdk-version)" == 10.* ]]; then
if ([ "$GITHUB_WORKFLOW" != "" ] || [ "$PIPELINE_WORKSPACE" != "" ]) && [ -d /Applications/Xcode_12.2.app ]; then
sudo xcode-select -switch /Applications/Xcode_12.2.app
else
echo "Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
exit 1
fi
fi
export SDKROOT=${SDKROOT:-$(xcrun -show-sdk-path)}
fi
# Get needed utilities
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment