Skip to content

ci: only use gcc7,8 on ubuntu 20.04 #45

ci: only use gcc7,8 on ubuntu 20.04

ci: only use gcc7,8 on ubuntu 20.04 #45

Workflow file for this run

name: Ubuntu
on: [push]
env:
CTEST_OUTPUT_ON_FAILURE: 1
jobs:
build-gcc:
runs-on: ${{matrix.os}}
name: ${{ matrix.os}} gcc${{ matrix.version }} C++${{ matrix.cpp }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
cpp: [17]
version: [9, 10, 11]
include:
- os: ubuntu-22.04
version: 12
- os: ubuntu-20.04
version: [7, 8]
env:
CPP_STANDARD: ${{ matrix.cpp }}
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: "**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}
- name: set up GCC
uses: egor-tensin/setup-gcc@v1
with:
version: ${{matrix.version}}
platform: x64
- name: Configure
run: cmake -S . -B build
- name: Build
run: cmake --build build --config Debug -j4
- name: Run tests
run: |
cd build
ctest --build-config Debug