From 06fad301cb65fd22e98f197856ad0c52ab6e0cb0 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Sun, 25 Apr 2021 11:54:08 +0200 Subject: [PATCH] CI: added Valgrind job (closes #1542) --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 487b2bdd..87d7dce3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -268,3 +268,23 @@ jobs: with: github-token: ${{ secrets.GITHUB_TOKEN }} path-to-lcov: coverage_filtered.info + + valgrind: + needs: gcc + name: Valgrind + runs-on: ubuntu-20.04 + steps: + - name: Install + run: sudo apt-get install -y valgrind ninja-build + - name: Checkout + uses: actions/checkout@v2 + - name: Configure + run: cmake -G Ninja -D MEMORYCHECK_COMMAND_OPTIONS="--error-exitcode=1 --leak-check=full" . + - name: Build + run: ninja + - name: Memcheck + run: ctest -LE WillFail -T memcheck + id: memcheck + - name: MemoryChecker.*.log + run: cat Testing/Temporary/MemoryChecker.*.log + if: failure()