add formatting to cmake

This commit is contained in:
Bechir Braham
2024-04-03 14:50:14 +02:00
parent 2e4eec0c8a
commit 76c0f7a757
2 changed files with 24 additions and 1 deletions

View File

@ -11,9 +11,13 @@ jobs:
# find all examples in build/examples and run them
run: |
pwd
find -name "*.cpp" -not -path "./build/*" | xargs -I {} -n 1 -P 10 clang-format {} -Werror --dry-run -style='file:.clang-format'
mkdir build
cd build
cmake ..
cmake --build . --target=check-format