Skip to content

Commit

Permalink
more checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBach committed May 30, 2024
1 parent ea092d3 commit 3b27726
Showing 1 changed file with 108 additions and 1 deletion.
109 changes: 108 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,111 @@ jobs:

- name: cppcheck
run: cppcheck --project=compile_commands.json --cppcheck-build-dir=./temp/cppcheck --error-exitcode=1 --enable=all
working-directory: ./build
working-directory: ./build

run_clang_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code

- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind

- name: clang-format
run: clang-format --dry-run -Werror --style=file src/bad_code.cpp

run_clang_tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code

- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind

- name: build directory
run: mkdir build

- name: CMake
run: cmake -DENABLE_CLANG_TIDY=ON ..
working-directory: ./build

- name: build
run: cmake --build .
working-directory: ./build

build_asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code

- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind

- name: build directory
run: mkdir build

- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_ASAN=ON ..
working-directory: ./build

- name: build
run: cmake --build . -j
working-directory: ./build

- name: tests
run: ctest --output-on-failure
working-directory: ./build


build_ubsan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code

- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind

- name: build directory
run: mkdir build

- name: CMake
run: cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_UBSAN=ON ..
working-directory: ./build

- name: build
run: cmake --build . -j
working-directory: ./build

- name: tests
run: ctest --output-on-failure
working-directory: ./build


run_valgrind:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
name: Check out the repository code

- name: dependencies
run: sudo apt-get install build-essential cmake cppcheck clang-format clang-tidy valgrind

- name: build directory
run: mkdir build

- name: CMake
run: cmake -DUSE_VALGRIND=ON ..
working-directory: ./build

- name: build
run: cmake --build .
working-directory: ./build

- name: tests
run: ctest -T memcheck --output-on-failure
working-directory: ./build

0 comments on commit 3b27726

Please sign in to comment.