Skip to content

Commit

Permalink
Add tests with UB Sanitizer workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
polyntsov committed Feb 18, 2023
1 parent 2e6addb commit f54faaf
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ jobs:
strategy:
matrix:
BUILD_TYPE: [ Release, Debug ]
include:
- BUILD_TYPE: Debug
SANITIZER: ADDRESS
- BUILD_TYPE: Debug
SANITIZER: UB
steps:
- uses: actions/checkout@v2
- name: Install build tools
Expand Down Expand Up @@ -117,10 +122,11 @@ jobs:
-DCMAKE_CXX_COMPILER=g++-10
-DBOOST_ROOT=${{github.workspace}}/lib/boost
-DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
-DSANITIZER=${{matrix.SANITIZER}}
-Dgtest_disable_pthreads=OFF
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{matrix.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build/target
shell: bash
run: ./Desbordante_test --gtest_filter='*:-*HeavyDatasets*'
run: UBSAN_OPTIONS="halt_on_error=1" ./Desbordante_test --gtest_filter='*:-*HeavyDatasets*'

0 comments on commit f54faaf

Please sign in to comment.