Files
aare/.github/workflows/format.yml
Bechir Braham ea17a640cf fix for ci and fetchcontent build
replace cmake --build with actual command in github format workflow for faster checking
2024-04-10 11:03:58 +02:00

22 lines
479 B
YAML

name: test-formatting
on:
push:
jobs:
test-formatting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: check if files are formatted
# find all examples in build/examples and run them
run: |
pwd
mkdir build
cd build
find \( -name "*.cpp" -o -name "*.hpp" \) -not -path "./build/*" | xargs -I {} -n 1 -P 10 bash -c "clang-format -i -style=\"file:.clang-format\" {}"