Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
3f05fb2e
Commit
3f05fb2e
authored
May 25, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CI jobs that test with GCC 11.
parent
1eac3022
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
.github/workflows/ci.yml
.github/workflows/ci.yml
+9
-0
Tools/ci-run.sh
Tools/ci-run.sh
+6
-4
No files found.
.github/workflows/ci.yml
View file @
3f05fb2e
...
...
@@ -29,6 +29,14 @@ jobs:
env
:
[{}]
include
:
-
python-version
:
3.9
backend
:
c
env
:
{
GCC_VERSION
:
11
}
allowed_failure
:
true
-
python-version
:
3.9
backend
:
cpp
env
:
{
GCC_VERSION
:
11
}
allowed_failure
:
true
# Temporary - Allow failure on all 3.10-dev jobs until beta comes out
-
python-version
:
3.10-dev
allowed_failure
:
true
...
...
@@ -121,6 +129,7 @@ jobs:
BACKEND
:
${{ matrix.backend }}
OS_NAME
:
${{ matrix.os }}
PYTHON_VERSION
:
${{ matrix.python-version }}
GCC_VERSION
:
8
USE_CCACHE
:
1
CCACHE_SLOPPINESS
:
"
pch_defines,time_macros"
CCACHE_COMPRESS
:
1
...
...
Tools/ci-run.sh
View file @
3f05fb2e
#!/usr/bin/bash
GCC_VERSION
=
${
GCC_VERSION
:
=8
}
# Set up compilers
if
[
"
${
OS_NAME
##ubuntu*
}
"
==
""
-
"
$TEST_CODE_STYLE
"
!=
"1"
]
;
then
echo
"Installing requirements [apt]"
sudo
apt-add-repository
-y
"ppa:ubuntu-toolchain-r/test"
sudo
apt update
-y
-q
sudo
apt
install
-y
-q
ccache gdb python-dbg python3-dbg gcc-
8
||
exit
1
sudo
apt
install
-y
-q
ccache gdb python-dbg python3-dbg gcc-
$GCC_VERSION
||
exit
1
if
[
-z
"
${
BACKEND
##*cpp*
}
"
]
;
then
sudo
apt
install
-y
-q
g++-
8
||
exit
1
sudo
apt
install
-y
-q
g++-
$GCC_VERSION
||
exit
1
fi
sudo
/usr/sbin/update-ccache-symlinks
echo
"/usr/lib/ccache"
>>
$GITHUB_PATH
# export ccache to path
sudo
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-
8 60
$(
if
[
-z
"
${
BACKEND
##*cpp*
}
"
]
;
then
echo
" --slave /usr/bin/g++ g++ /usr/bin/g++-8
"
;
fi
)
sudo
update-alternatives
--install
/usr/bin/gcc gcc /usr/bin/gcc-
$GCC_VERSION
60
$(
if
[
-z
"
${
BACKEND
##*cpp*
}
"
]
;
then
echo
" --slave /usr/bin/g++ g++ /usr/bin/g++-
$GCC_VERSION
"
;
fi
)
export
CC
=
"gcc"
if
[
-z
"
${
BACKEND
##*cpp*
}
"
]
;
then
sudo
update-alternatives
--set
g++ /usr/bin/g++-
8
sudo
update-alternatives
--set
g++ /usr/bin/g++-
$GCC_VERSION
export
CXX
=
"g++"
fi
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