Skip to content

update

update #5

Workflow file for this run

name: Run clang-tidy
on: [push, pull_request]
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- name: Checkout the code
uses: actions/checkout@v3
- name: Set up CMake
uses: jwlawson/actions-setup-cmake@v1
- name: Install clang-tidy
run: sudo apt-get install -y clang-tidy
- name: Generate Compile Commands
run: cmake -S . -B build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_INSTALL_PREFIX=${{ github.workspace }}
- name: Run clang-tidy
run: |
cd build
cmake --build .
clang-tidy -p build $(find ../ADOL-C/src -name '*.c' -o -name '*.cpp' -o -name '*.h') --warnings-as-errors='*'