Merge pull request #4523 from c2main/always-use-mark-change #1848
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: uncrustify_test | |
on: [push, pull_request] | |
# Cancel any in-progress CI runs for a PR if it is updated | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | |
cancel-in-progress: true | |
jobs: | |
uncrustify: | |
name: ${{ matrix.build_type }} - ${{ matrix.generator }} | |
strategy: | |
matrix: | |
include: | |
- build_type: Debug | |
generator: Ninja | |
- build_type: Release | |
generator: Unix Makefiles | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: seanmiddleditch/gha-setup-ninja@master | |
- name: cmake-part-and-tests | |
env: | |
BADGE: linux | |
CMAKE_CXX_FLAGS_disabled: >- | |
-fno-sanitize=alignment | |
-fsanitize=address | |
-fsanitize=bounds | |
-fsanitize=bounds-strict | |
-fsanitize=null | |
# -fsanitize-recover | |
# -fsanitize=bool | |
# -fsanitize=enum | |
# -fsanitize=integer-divide-by-zero | |
# -fsanitize=leak | |
# -fsanitize=signed-integer-overflow | |
# -fsanitize=thread | |
# -fsanitize=undefined | |
# -fsanitize=vla-bound | |
run: | | |
cmake -B build -G "${{ matrix.generator }}" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS="${CMAKE_CXX_FLAGS}" | |
cmake --build build --parallel $(nproc) | |
cd build | |
../scripts/run_ctest.py -j $(nproc) |