Commit b83a56ac authored by Isuru Fernando's avatar Isuru Fernando
Browse files

select the correct SDK for github CI and azure pipelines

parent 63c1418e
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
# Wheel build, install, run test steps on OSX # Wheel build, install, run test steps on OSX
set -e 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
fi
# Get needed utilities # Get needed utilities
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}") MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-$TRAVIS_PYTHON_VERSION} MB_PYTHON_VERSION=${MB_PYTHON_VERSION:-$TRAVIS_PYTHON_VERSION}
......
...@@ -5,7 +5,7 @@ WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse} ...@@ -5,7 +5,7 @@ WHEEL_SDIR=${WHEEL_SDIR:-wheelhouse}
MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}") MULTIBUILD_DIR=$(dirname "${BASH_SOURCE[0]}")
if [ ! -d "$PWD/$WHEEL_SDIR" ]; then mkdir $PWD/$WHEEL_SDIR; fi if [ ! -d "$PWD/$WHEEL_SDIR" ]; then mkdir $PWD/$WHEEL_SDIR; fi
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then if [[ "$(uname)" == "Darwin" ]]; then
source $MULTIBUILD_DIR/travis_osx_steps.sh source $MULTIBUILD_DIR/travis_osx_steps.sh
else else
source $MULTIBUILD_DIR/travis_linux_steps.sh source $MULTIBUILD_DIR/travis_linux_steps.sh
......
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