aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-16 16:24:44 +0300
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2025-03-16 16:33:51 +0300
commitf29fda9a391af1ee05258cb143959e867b67ce23 (patch)
treeb78767a08b05bd57f1cabb4ced9deb5e6bf2f50e
parent74e912cd79d83f8470137a8b288488749c0a79bc (diff)
downloadsciteco-f29fda9a391af1ee05258cb143959e867b67ce23.tar.gz
CI: enable address sanitizer when building with Clang
As I cannot run the test suite with Valgrind in Github runners, this should still catch some memory bugs during test suite runs.
-rw-r--r--.github/workflows/ci.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d42585a..aeecd9a 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -7,7 +7,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
- compiler: ['CC=gcc CXX=g++', 'CC=clang CXX=clang++']
+ # Enable Adress Sanitizer only on Clang.
+ # This will improve the test suite quality, even without Valgrind.
+ compiler: ['CC=gcc CXX=g++', '--disable-malloc-replacement CC=clang CXX=clang++ CFLAGS="-fsanitize=address -fno-omit-frame-pointer" CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer"']
interface: [ncurses, gtk]
# NOTE: The virtual environments already contain both GCC and Clang