From 1bc4fe44e3f258d8004a2141bb87cff583e88600 Mon Sep 17 00:00:00 2001 From: Evgeny Posenitskiy <45995097+q-posev@users.noreply.github.com> Date: Fri, 8 Jul 2022 11:26:17 +0200 Subject: [PATCH] Add AddressSanitizer debug to the CI --- .github/workflows/actions.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 7a23aa0..0b1298f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -52,10 +52,10 @@ jobs: ./configure --enable-silent-rules - name: compile TREXIO - run: make -j 2 + run: make -j2 - name: check TREXIO - run: make check + run: make -j2 check - name: create virtual environment run: | @@ -82,8 +82,22 @@ jobs: name: pytrexio-source path: ./trexio-*.tar.gz - - name: clean - run: make clean + - name: maintainer clean + run: make maintainer-clean + + - name: reconfigure with clang and AddressSanitizer + run: | + ./autogen.sh + ./configure CC=clang-11 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules + + - name: recompile TREXIO + run: make -j2 + + - name: recheck TREXIO for memory leaks + run: make -j2 check + + - name: maintainer clean + run: make maintainer-clean trexio_macos: