Skip to content

Build, CI and Unit Test Updates #46

Build, CI and Unit Test Updates

Build, CI and Unit Test Updates #46

Workflow file for this run

name: Ubuntu
on:
push:
branches: [ develop, main]
pull_request:
branches: [ develop, main ]
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
- os: ubuntu-20.04
version: 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