From c748569310fe8d3856eea22f15b8acd9980a7e48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sun, 9 Nov 2025 21:28:25 +0100 Subject: [PATCH] Test tsan on mac --- .github/workflows/mac-other-builds.yml | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/mac-other-builds.yml diff --git a/.github/workflows/mac-other-builds.yml b/.github/workflows/mac-other-builds.yml new file mode 100644 index 00000000..5ba5e63d --- /dev/null +++ b/.github/workflows/mac-other-builds.yml @@ -0,0 +1,35 @@ +name: Mac Sanitizer Builds + +on: [push, pull_request] + +env: + CXXFLAGS: -fsanitize=thread,undefined + +jobs: + build: + # From macos-14 forward, the baseline "macos-X" image is Arm based, + # and not Intel based. + runs-on: ${{matrix.image}} + strategy: + fail-fast: false + matrix: + image: [macos-13] + build_type: [Debug] + std: [14, 17] + + steps: + - uses: actions/checkout@v4 + + - name: Configure + + run: | + cmake --preset all-tests -GNinja \ + -DCMAKE_BUILD_TYPE=${{matrix.build_type}} \ + -DCMAKE_CXX_STANDARD=${{matrix.std}} \ + -DCATCH_BUILD_EXTRA_TESTS=ON + + - name: Build + run: cmake --build build + + - name: Test + run: ctest --test-dir build -R ThreadSafetyTests --timeout 21600