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
cdd6c870
Unverified
Commit
cdd6c870
authored
Feb 25, 2021
by
Isuru Fernando
Committed by
GitHub
Feb 25, 2021
Browse files
Merge pull request #393 from radarhere/sdk
Simplified code
parents
8be8042f
ea4adc23
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
travis_osx_steps.sh
travis_osx_steps.sh
+2
-11
No files found.
travis_osx_steps.sh
View file @
cdd6c870
...
...
@@ -2,22 +2,13 @@
# Wheel build, install, run test steps on OSX
set
-e
function
check_sdk_11
{
ver
=
"
$(
xcrun
-show-sdk-version
)
"
if
[[
"
${
ver
}
"
==
""
||
"
${
ver
}
"
==
10.
*
]]
;
then
echo
"not found"
else
echo
"found"
fi
}
if
[
"
$PLAT
"
==
"arm64"
]
||
[
"
$PLAT
"
==
"universal2"
]
;
then
if
[[
"
$(
check_sdk_11
)
"
==
"not found"
]]
;
then
if
[[
"
$(
xcrun
--sdk
macosx
--show-sdk-version
|
cut
-d
'.'
-f
1
)
"
-lt
11
]]
;
then
latestXcode
=
$(
ls
/Applications |
grep
Xcode[_0-9
\.
]
*
\.
app |
sort
-V
|
tail
-n
1
)
if
([
"
$GITHUB_WORKFLOW
"
!=
""
]
||
[
"
$PIPELINE_WORKSPACE
"
!=
""
])
&&
[
$latestXcode
]
;
then
sudo
xcode-select
-switch
/Applications/
$latestXcode
fi
if
[[
"
$(
check_sdk_11
)
"
==
"not found"
]]
;
then
if
[[
"
$(
xcrun
--sdk
macosx
--show-sdk-version
|
cut
-d
'.'
-f
1
)
"
-lt
11
]]
;
then
echo
"Need SDK>=11 for arm64 builds. Please run xcode-select to select a newer SDK"
exit
1
fi
...
...
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