Skip to content

Support c++20 and clang compiler #255

Support c++20 and clang compiler

Support c++20 and clang compiler #255

Workflow file for this run

name: Unit testing
on:
workflow_dispatch:
pull_request:
push:
branches: [ "master" ]
tags: [ "*" ]
jobs:
default:
uses: ./.github/workflows/reusable-testing.yml
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-20.04
- ubuntu-22.04
- macos-11
- macos-12
compiler:
- {c: gcc, cxx: g++}
- {c: clang, cxx: clang++, cxx-compiler-flags: '-stdlib=libc++', exe-linker-flags: '-stdlib=libc++ -lc++abi'}
build-type:
- Debug
- RelWithDebInfo
cxx-standard:
- 17
- 20
with:
runs-on: ${{ matrix.runs-on }}
build-type: ${{ matrix.build-type }}
cxx-standard: ${{ matrix.cxx-standard }}
c-compiler: ${{ matrix.compiler.c }}
cxx-compiler: ${{ matrix.compiler.cxx }}
cxx-compiler-flags: ${{ matrix.compiler.cxx-compiler-flags }}
exe-linker-flags: ${{ matrix.compiler.exe-linker-flags }}
valgrind:
uses: ./.github/workflows/reusable-testing.yml
strategy:
fail-fast: false
matrix:
build-type:
- Debug
- RelWithDebInfo
with:
runs-on: ubuntu-22.04
build-type: ${{ matrix.build-type }}
use-valgrind: true
sanitizers:
uses: ./.github/workflows/reusable-testing.yml
strategy:
fail-fast: false
matrix:
runs-on:
- ubuntu-22.04
- macos-12
build-type:
- Debug
- RelWithDebInfo
with:
runs-on: ${{ matrix.runs-on }}
build-type: ${{ matrix.build-type }}
enable-sanitizers: true