From bc37f33a23d49d1335d9ff1d03fe5de9025da8c6 Mon Sep 17 00:00:00 2001 From: Andrey Saranchin Date: Tue, 23 Jan 2024 22:30:25 +0300 Subject: [PATCH] ci: populate sanitizers job with clang build It is required to test tntcxx with undefined behavior sanitizer, which is disabled on GCC because of bug. Closes #73 --- .github/workflows/testing.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index cf0a81fad..bba153280 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -89,7 +89,17 @@ jobs: build-type: - Debug - RelWithDebInfo + compiler: + - {c: gcc, cxx: g++} + - {c: clang, cxx: clang++} + # gcc on macos is just an alias for clang + exclude: + - runs-on: macos-12 + compiler: {c: gcc, cxx: g++} + name: sanitizers (${{ matrix.runs-on }}, ${{ matrix.build-type }}, ${{ matrix.compiler.c }}) with: runs-on: ${{ matrix.runs-on }} build-type: ${{ matrix.build-type }} + c-compiler: ${{ matrix.compiler.c }} + cxx-compiler: ${{ matrix.compiler.cxx }} enable-sanitizers: true