From a2a8c3d4eefc6c6792997202ed59a3386f0c4183 Mon Sep 17 00:00:00 2001 From: Hamish Coleman Date: Sun, 8 May 2022 15:44:59 +0100 Subject: [PATCH] Add some analysis tools --- .github/workflows/tests.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 20fac5d..7d7b6bb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,6 +52,42 @@ jobs: run: | make lint + analyse: + name: Code Analysers + runs-on: ubuntu-latest + strategy: + fail-fast: true + matrix: + flags: + - -fsanitize=leak + - -fsanitize=address -static-libasan + - -fsanitize=undefined -static-libubsan + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - name: Fix Checkout + run: | + git fetch --force --tags + + - name: Make the makefiles + run: | + ./autogen.sh + + export CFLAGS="${{ matrix.flags }}" + export LDFLAGS="${{ matrix.flags }}" + ./configure + + - name: Install essential + run: | + sudo apt update + make build-dep + + - name: Run the analysis + run: | + make test + test_linux: needs: smoketest name: Test Linux