From f1f83d1582e1a71c1a6f8ea1be580efd5588ded2 Mon Sep 17 00:00:00 2001 From: q-posev Date: Fri, 8 Jul 2022 17:52:34 +0200 Subject: [PATCH] Include the CI steps with AddressSanitizer --- .github/workflows/test-build.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 16b32ce..0ff42eb 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -76,6 +76,24 @@ jobs: run: make python-test working-directory: _build + - name: Re-build QMCkl with AddressSanitizer + run: | + mkdir _build_as + cd _build_as + ../configure CFLAGS="-g -O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules + make -j2 + + - name: Run test + run: make -j2 check + working-directory: _build_as + + - name: Archive test log file + if: failure() + uses: actions/upload-artifact@v2 + with: + name: test-report-ubuntu-as + path: _build_as/test-suite.log + # x86_macos: # # runs-on: macos-latest