Commit 3f05fb2e authored by Stefan Behnel's avatar Stefan Behnel

Add CI jobs that test with GCC 11.

parent 1eac3022
......@@ -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
......
#!/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
......
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