Added missing test #83
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ASan+UBSan | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| branches: [main, development] | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| # Configure CMake with ASan + UBSan | |
| - name: Configure with sanitizers | |
| run: cmake -B build -S . \ | |
| -DCMAKE_BUILD_TYPE=Debug \ | |
| -DCMAKE_C_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" \ | |
| -DCMAKE_CXX_FLAGS="-fsanitize=address,undefined -fno-omit-frame-pointer -g" \ | |
| -DBUILD_TESTING=ON | |
| # Build | |
| - name: Build | |
| run: cmake --build build --config Debug | |
| # Run tests | |
| - name: Run tests under ASan+UBSan | |
| run: cd build && ctest --output-on-failure |