Add sanitizer test to github actions and sr.ht builds.

This will run both clang and gcc sanitizers as part of ordinary testing.
This commit is contained in:
Calvin Rose
2026-02-20 18:08:09 -06:00
parent ca9ffaa5bb
commit 403b2c704a
2 changed files with 20 additions and 0 deletions
+14
View File
@@ -21,6 +21,20 @@ jobs:
- name: Test the project
run: make test
test-posix-sanitizers:
name: Build and test on POSIX systems with sanitizers turned on
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest ]
steps:
- name: Checkout the repository
uses: actions/checkout@master
- name: Compile the project
run: make clean && CFLAGS="-g -O2 -fsanitize=address,undefined" make
- name: Test the project
run: make test
test-windows:
name: Build and test on Windows
strategy: