Skip to content

Commit

Permalink
Refactored CI: first do valgrind and then debug configure
Browse files Browse the repository at this point in the history
  • Loading branch information
q-posev committed Jan 2, 2025
1 parent d804b14 commit 1513eec
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ jobs:
- name: configure with autotools
run: |
./autogen.sh
./configure --enable-silent-rules --enable-debug --enable-sanitizer
./configure --enable-silent-rules
- name: compile TREXIO
run: make -j2

- name: check TREXIO
run: make -j2 check

- name: check via valgrind
run: cd tests && bash run_valgrind.sh

- name: Archive test log file
if: failure()
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
Expand Down Expand Up @@ -113,15 +116,15 @@ jobs:
- name: maintainer clean
run: make maintainer-clean

- name: reconfigure with clang and AddressSanitizer
- name: reconfigure with debugging
run: |
./autogen.sh
./configure CC=clang-15 CFLAGS="-O2 -fsanitize=address -fno-omit-frame-pointer" LDFLAGS="-fsanitize=address" --enable-silent-rules
./configure --enable-silent-rules --enable-debug --enable-sanitizer
- name: recompile TREXIO
run: make -j2

- name: recheck TREXIO for memory leaks
- name: recheck TREXIO
run: make -j2 check

- name: Archive test log file
Expand Down

0 comments on commit 1513eec

Please sign in to comment.