From da24acd0c6d1366772357d4da1fddc5599f0fb8d Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Sun, 8 Nov 2026 00:57:15 -0700 Subject: [PATCH] Run the AddressSanitizer test build in CI Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 2 ++ README.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0337a0c..fe86d56 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,8 @@ jobs: - uses: actions/checkout@v4 - name: make and run the tests run: bash run_tests.sh + - name: AddressSanitizer build and run + run: bash run_tests_asan.sh - name: CMake build and ctest run: | cmake -S . -B build -DCMAKE_BUILD_TYPE=Release diff --git a/README.md b/README.md index ea64c75..9c6baf1 100644 --- a/README.md +++ b/README.md @@ -119,7 +119,7 @@ bash run_tests.sh bash run_tests_asan.sh ``` -`run_tests_asan.sh` is the AddressSanitizer variant. It compiles the same sources with `-fsanitize=address -g` into `tests_executable_asan` and runs it with `ASAN_OPTIONS=detect_leaks=1`, so an unfreed allocation or a memory-safety error fails the run. Running it is additionally expected for any change that affects allocation or object lifetime. +`run_tests_asan.sh` is the AddressSanitizer variant. It compiles the same sources with `-fsanitize=address -g` into `tests_executable_asan` and runs it with `ASAN_OPTIONS=detect_leaks=1`, so an unfreed allocation or a memory-safety error fails the run. Running it is additionally expected for any change that affects allocation or object lifetime. CI's `Library tests (make + CMake)` job runs both scripts on every pull request and on every push to `master`. ## py_env_lib