Skip to content

Commit

Permalink
Added thread sanitizer to Github build and test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dougbinks committed Mar 4, 2024
1 parent fc8f596 commit 6886d1b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Expand Up @@ -22,14 +22,14 @@ jobs:
- uses: actions/checkout@v3

- name: Configure static library
run: cmake -S . -B build-static
run: cmake -S . -B build-static -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll

- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
Expand All @@ -48,14 +48,14 @@ jobs:
- uses: actions/checkout@v3

- name: Configure static library
run: cmake -S . -B build-static
run: cmake -S . -B build-static -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll

- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
Expand All @@ -71,14 +71,14 @@ jobs:
- uses: actions/checkout@v3

- name: Configure static library
run: cmake -S . -B build-static
run: cmake -S . -B build-static -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build static library
run: cmake --build build-static --parallel
- name: Test static library
run: ./build-static/TestAll

- name: Configure shared library
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON
run: cmake -S . -B build-shared -D ENKITS_BUILD_SHARED=ON -DCMAKE_CXX_FLAGS="-fsanitize=thread -g" -DCMAKE_EXE_LINKER_FLAGS="-fsanitize=thread" -DCMAKE_MODULE_LINKER_FLAGS="-fsanitize=thread"
- name: Build shared library
run: cmake --build build-shared --parallel
- name: Test shared library
Expand Down

0 comments on commit 6886d1b

Please sign in to comment.