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