Refactor CI (no more gcc 7)
parent
4461efc495
commit
42182c85ff
|
@ -20,19 +20,15 @@ jobs:
|
||||||
# Github Actions requires a single row to be added to the build matrix.
|
# Github Actions requires a single row to be added to the build matrix.
|
||||||
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
||||||
name: [
|
name: [
|
||||||
ubuntu-20.04-gcc-7,
|
|
||||||
ubuntu-20.04-gcc-9,
|
ubuntu-20.04-gcc-9,
|
||||||
ubuntu-20.04-clang-9,
|
ubuntu-20.04-clang-9,
|
||||||
|
ubuntu-22.04-gcc-11,
|
||||||
|
ubuntu-22.04-clang-14,
|
||||||
]
|
]
|
||||||
|
|
||||||
build_type: [Debug, Release]
|
build_type: [Debug, Release]
|
||||||
build_unstable: [ON]
|
build_unstable: [ON]
|
||||||
include:
|
include:
|
||||||
- name: ubuntu-20.04-gcc-7
|
|
||||||
os: ubuntu-20.04
|
|
||||||
compiler: gcc
|
|
||||||
version: "7"
|
|
||||||
|
|
||||||
- name: ubuntu-20.04-gcc-9
|
- name: ubuntu-20.04-gcc-9
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
|
@ -43,6 +39,16 @@ jobs:
|
||||||
compiler: clang
|
compiler: clang
|
||||||
version: "9"
|
version: "9"
|
||||||
|
|
||||||
|
- name: ubuntu-22.04-gcc-11
|
||||||
|
os: ubuntu-22.04
|
||||||
|
compiler: gcc
|
||||||
|
version: "11"
|
||||||
|
|
||||||
|
- name: ubuntu-22.04-clang-14
|
||||||
|
os: ubuntu-22.04
|
||||||
|
compiler: clang
|
||||||
|
version: "14"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -38,14 +38,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
brew install cmake ninja
|
brew install cmake ninja
|
||||||
brew install boost
|
brew install boost
|
||||||
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
|
||||||
brew install gcc@${{ matrix.version }}
|
|
||||||
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
sudo xcode-select -switch /Applications/Xcode.app
|
sudo xcode-select -switch /Applications/Xcode.app
|
||||||
echo "CC=clang" >> $GITHUB_ENV
|
echo "CC=clang" >> $GITHUB_ENV
|
||||||
echo "CXX=clang++" >> $GITHUB_ENV
|
echo "CXX=clang++" >> $GITHUB_ENV
|
||||||
fi
|
|
||||||
- name: Build and Test
|
- name: Build and Test
|
||||||
run: bash .github/scripts/unix.sh -t
|
run: bash .github/scripts/unix.sh -t
|
||||||
|
|
|
@ -19,32 +19,26 @@ jobs:
|
||||||
# Github Actions requires a single row to be added to the build matrix.
|
# Github Actions requires a single row to be added to the build matrix.
|
||||||
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
||||||
name: [
|
name: [
|
||||||
ubuntu-20.04-gcc-7,
|
|
||||||
ubuntu-20.04-gcc-9,
|
ubuntu-20.04-gcc-9,
|
||||||
|
ubuntu-20.04-gcc-9-tbb,
|
||||||
ubuntu-20.04-clang-9,
|
ubuntu-20.04-clang-9,
|
||||||
macOS-11-xcode-13.4.1,
|
macOS-11-xcode-13.4.1,
|
||||||
ubuntu-20.04-gcc-7-tbb,
|
|
||||||
]
|
]
|
||||||
|
|
||||||
build_type: [Debug, Release]
|
build_type: [Debug, Release]
|
||||||
python_version: [3]
|
python_version: [3]
|
||||||
include:
|
include:
|
||||||
- name: ubuntu-20.04-gcc-7
|
|
||||||
os: ubuntu-20.04
|
|
||||||
compiler: gcc
|
|
||||||
version: "7"
|
|
||||||
|
|
||||||
- name: ubuntu-20.04-gcc-9
|
- name: ubuntu-20.04-gcc-9
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
version: "9"
|
version: "9"
|
||||||
|
|
||||||
- name: ubuntu-20.04-clang-9
|
- name: ubuntu-20.04-gcc-9-tbb
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
compiler: clang
|
compiler: gcc
|
||||||
version: "9"
|
version: "9"
|
||||||
|
flag: tbb
|
||||||
|
|
||||||
# NOTE temporarily added this as it is a required check.
|
|
||||||
- name: ubuntu-20.04-clang-9
|
- name: ubuntu-20.04-clang-9
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
compiler: clang
|
compiler: clang
|
||||||
|
@ -57,12 +51,6 @@ jobs:
|
||||||
compiler: xcode
|
compiler: xcode
|
||||||
version: "13.4.1"
|
version: "13.4.1"
|
||||||
|
|
||||||
- name: ubuntu-20.04-gcc-7-tbb
|
|
||||||
os: ubuntu-20.04
|
|
||||||
compiler: gcc
|
|
||||||
version: "7"
|
|
||||||
flag: tbb
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -22,44 +22,45 @@ jobs:
|
||||||
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
# See https://help.github.com/en/articles/workflow-syntax-for-github-actions.
|
||||||
name:
|
name:
|
||||||
[
|
[
|
||||||
ubuntu-gcc-deprecated,
|
ubuntu-clang-deprecated,
|
||||||
ubuntu-gcc-quaternions,
|
ubuntu-clang-quaternions,
|
||||||
ubuntu-gcc-tbb,
|
ubuntu-clang-tbb,
|
||||||
ubuntu-cayleymap,
|
ubuntu-clang-cayleymap,
|
||||||
|
ubuntu-clang-system-libs,
|
||||||
]
|
]
|
||||||
|
|
||||||
build_type: [Debug, Release]
|
build_type: [Debug, Release]
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- name: ubuntu-gcc-deprecated
|
- name: ubuntu-clang-deprecated
|
||||||
os: ubuntu-20.04
|
os: ubuntu-20.04
|
||||||
compiler: gcc
|
compiler: clang
|
||||||
version: "9"
|
version: "14"
|
||||||
flag: deprecated
|
flag: deprecated
|
||||||
|
|
||||||
- name: ubuntu-gcc-quaternions
|
- name: ubuntu-clang-quaternions
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: clang
|
||||||
version: "9"
|
version: "14"
|
||||||
flag: quaternions
|
flag: quaternions
|
||||||
|
|
||||||
- name: ubuntu-gcc-tbb
|
- name: ubuntu-clang-tbb
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: clang
|
||||||
version: "9"
|
version: "14"
|
||||||
flag: tbb
|
flag: tbb
|
||||||
|
|
||||||
- name: ubuntu-cayleymap
|
- name: ubuntu-clang-cayleymap
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: clang
|
||||||
version: "9"
|
version: "14"
|
||||||
flag: cayley
|
flag: cayley
|
||||||
|
|
||||||
- name: ubuntu-system-libs
|
- name: ubuntu-clang-system-libs
|
||||||
os: ubuntu-20.04
|
os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: clang
|
||||||
version: "9"
|
version: "14"
|
||||||
flag: system-libs
|
flag: system
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
|
@ -68,25 +69,12 @@ jobs:
|
||||||
- name: Install (Linux)
|
- name: Install (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: |
|
run: |
|
||||||
# LLVM 9 is not in Bionic's repositories so we add the official LLVM repository.
|
|
||||||
if [ "${{ matrix.compiler }}" = "clang" ] && [ "${{ matrix.version }}" = "9" ]; then
|
|
||||||
gpg --keyserver keyserver.ubuntu.com --recv-key $LLVM_KEY || gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-key $LLVM_KEY
|
|
||||||
gpg -a --export 15CF4D18AF4F7421 | sudo apt-key add -
|
|
||||||
sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-9 main"
|
|
||||||
fi
|
|
||||||
|
|
||||||
sudo apt-get -y update
|
sudo apt-get -y update
|
||||||
sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libicu-dev
|
sudo apt-get -y install cmake build-essential pkg-config libpython3-dev python3-numpy libicu-dev
|
||||||
|
|
||||||
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
|
||||||
sudo apt-get install -y g++-${{ matrix.version }} g++-${{ matrix.version }}-multilib
|
|
||||||
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
|
sudo apt-get install -y clang-${{ matrix.version }} g++-multilib
|
||||||
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
|
echo "CC=clang-${{ matrix.version }}" >> $GITHUB_ENV
|
||||||
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
|
echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Install Boost
|
- name: Install Boost
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
|
@ -97,15 +85,9 @@ jobs:
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
brew install cmake ninja boost
|
brew install cmake ninja boost
|
||||||
if [ "${{ matrix.compiler }}" = "gcc" ]; then
|
|
||||||
brew install gcc@${{ matrix.version }}
|
|
||||||
echo "CC=gcc-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
echo "CXX=g++-${{ matrix.version }}" >> $GITHUB_ENV
|
|
||||||
else
|
|
||||||
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
|
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
|
||||||
echo "CC=clang" >> $GITHUB_ENV
|
echo "CC=clang" >> $GITHUB_ENV
|
||||||
echo "CXX=clang++" >> $GITHUB_ENV
|
echo "CXX=clang++" >> $GITHUB_ENV
|
||||||
fi
|
|
||||||
|
|
||||||
- name: Set Allow Deprecated Flag
|
- name: Set Allow Deprecated Flag
|
||||||
if: matrix.flag == 'deprecated'
|
if: matrix.flag == 'deprecated'
|
||||||
|
|
Loading…
Reference in New Issue