Drop support of Clang 13 and 14. Minimum required version of Clang is 15 #2065
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Linux | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
compiler: [g++-11, g++-12, g++-13, clang++-15, clang++-16, clang++-17] | |
configuration: [Debug, Release] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: install g++-13 | |
if: matrix.compiler == 'g++-13' | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt-get update && sudo apt-get install -y g++-13 | |
- name: install clang++-15 | |
if: matrix.compiler == 'clang++-15' | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 15 | |
- name: install clang++-16 | |
if: matrix.compiler == 'clang++-16' | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 16 | |
- name: install clang++-17 | |
if: matrix.compiler == 'clang++-17' | |
run: | | |
wget https://apt.llvm.org/llvm.sh | |
chmod +x llvm.sh | |
sudo ./llvm.sh 17 | |
- name: configure | |
run: CXX=${{ matrix.compiler }} cmake -Werror=dev -D CMAKE_BUILD_TYPE=${{ matrix.configuration }} -D BUILD_TESTS=1 -B build | |
- name: build | |
run: cmake --build build -j $(nproc --all) | |
- name: run unit tests | |
run: ctest --test-dir build --output-on-failure --schedule-random -j $(nproc --all) |