From 303272bcdd0909ba691103ea9567cd9c54faf1c6 Mon Sep 17 00:00:00 2001 From: Fletcher Dunn Date: Sun, 3 May 2026 22:04:11 -0700 Subject: [PATCH] Add specific tsan build/run --- .github/build.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/build.sh b/.github/build.sh index 2b327cc..391260d 100755 --- a/.github/build.sh +++ b/.github/build.sh @@ -118,6 +118,16 @@ run_matrix_for_current_compiler() { fi fi + # TSan with libsodium (avoids OpenSSL false positives). + # Only clang, only x86_64 (tsan not reliable elsewhere). + if [[ "${compiler}" == "clang" ]] && [[ "${uname_M}" == x86_64 ]]; then + run_single --compiler "${compiler}" --build-dir build-tsan \ + --sanitizer tsan \ + --crypto libsodium --crypto25519 libsodium \ + --targets test_connection test_crypto \ + --run-tests + fi + # Build normal unsanitized binaries run_single --compiler "${compiler}" --build-dir build-cmake --build-type RelWithDebInfo --run-tests