Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
bf01f53a
Unverified
Commit
bf01f53a
authored
Jul 05, 2020
by
Nikita Titov
Committed by
GitHub
Jul 05, 2020
Browse files
[ci] bump gcc version for macOS (#3208)
* update gcc version * Update setup.sh * fix GitHub Actions
parent
4f8c32d9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
.ci/setup.sh
.ci/setup.sh
+6
-0
.ci/test.sh
.ci/test.sh
+2
-2
No files found.
.ci/setup.sh
View file @
bf01f53a
...
@@ -9,6 +9,12 @@ if [[ $OS_NAME == "macos" ]]; then
...
@@ -9,6 +9,12 @@ if [[ $OS_NAME == "macos" ]]; then
else
# gcc
else
# gcc
if
[[
$TASK
!=
"mpi"
]]
;
then
if
[[
$TASK
!=
"mpi"
]]
;
then
brew
install
gcc
brew
install
gcc
if
[[
$GITHUB_ACTIONS
==
"true"
]]
;
then
brew update
fi
if
[[
$TRAVIS
==
"true"
]]
||
[[
$GITHUB_ACTIONS
==
"true"
]]
;
then
brew upgrade gcc
fi
fi
fi
fi
fi
if
[[
$TASK
==
"mpi"
]]
;
then
if
[[
$TASK
==
"mpi"
]]
;
then
...
...
.ci/test.sh
View file @
bf01f53a
#!/bin/bash
#!/bin/bash
if
[[
$OS_NAME
==
"macos"
]]
&&
[[
$COMPILER
==
"gcc"
]]
;
then
if
[[
$OS_NAME
==
"macos"
]]
&&
[[
$COMPILER
==
"gcc"
]]
;
then
export
CXX
=
g++-
9
export
CXX
=
g++-
10
export
CC
=
gcc-
9
export
CC
=
gcc-
10
elif
[[
$OS_NAME
==
"linux"
]]
&&
[[
$COMPILER
==
"clang"
]]
;
then
elif
[[
$OS_NAME
==
"linux"
]]
&&
[[
$COMPILER
==
"clang"
]]
;
then
export
CXX
=
clang++
export
CXX
=
clang++
export
CC
=
clang
export
CC
=
clang
...
...
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