Skip to content

Offset Geometric Contact #128

Offset Geometric Contact

Offset Geometric Contact #128

name: Clang-Tidy Check
on:
push:
branches: [main]
pull_request:
paths:
- '.github/workflows/clang-tidy-check.yml'
- '.clang-tidy'
- 'src/**'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
clang-tidy:
name: Run Clang-Tidy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang-tidy cmake build-essential
- name: Get number of CPU cores
uses: SimenB/[email protected]
id: cpu-cores
- name: Configure CMake
run: |
mkdir -p build
cd build
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
- name: Run Clang-Tidy
run: |
run-clang-tidy -quiet -j ${{ steps.cpu-cores.outputs.count }} -p build $(find src -name '*.cpp')