From 70f4f6a669a1e59561e3bb8d1516b794a6696e4f Mon Sep 17 00:00:00 2001 From: Hannes Vogt Date: Wed, 25 Jan 2023 19:30:54 +0100 Subject: [PATCH 1/2] Enable sanitizers in CI --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72eb983..f9fa2d3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,13 +10,14 @@ jobs: matrix: os: [ubuntu-latest] compiler: [g++, clang++] + sanitize: ["", "-fsanitize=address", "-fsanitize=memory", "-fsanitize=undefined"] steps: - uses: actions/checkout@v1 - name: configure run: | mkdir build && cd build - CXX=`which ${{ matrix.compiler }}` cmake .. + CXX=`which ${{ matrix.compiler }}` cmake .. -DCMAKE_CXX_FLAGS="${{ matrix.sanitize }}" - name: build run: cmake --build build --parallel 2 - name: test From 58cc57c03160bbf2304fd186ec63a66da64eb414 Mon Sep 17 00:00:00 2001 From: Hannes Vogt Date: Wed, 25 Jan 2023 19:32:31 +0100 Subject: [PATCH 2/2] Update ci.yml --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9fa2d3..2c44566 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-latest] compiler: [g++, clang++] - sanitize: ["", "-fsanitize=address", "-fsanitize=memory", "-fsanitize=undefined"] + sanitize: ["", "-fsanitize=address", "-fsanitize=undefined"] steps: - uses: actions/checkout@v1