mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-13 09:59:32 +01:00
Test tsan on mac
This commit is contained in:
35
.github/workflows/mac-other-builds.yml
vendored
Normal file
35
.github/workflows/mac-other-builds.yml
vendored
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user