Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
fengzch-das
multibuild
Commits
94c58fdf
Commit
94c58fdf
authored
Feb 06, 2021
by
Isuru Fernando
Browse files
check to see /Applications/Xcode_12.2.app is available
parent
b83a56ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
travis_osx_steps.sh
travis_osx_steps.sh
+10
-3
No files found.
travis_osx_steps.sh
View file @
94c58fdf
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment