diff --git a/.github/workflows/cpplint.yml b/.github/workflows/cpplint.yml index 0b002f44..b9f9b202 100644 --- a/.github/workflows/cpplint.yml +++ b/.github/workflows/cpplint.yml @@ -25,4 +25,8 @@ jobs: run: sudo apt-get install -y clang-format-12 - name: Run cpplint - run: make cpplint + run: | + CPPSOURCES=$(find ./ -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)' -not -path "./build/*" -not -path "./python/*") + PYTHONCPPSOURCES=$(find ./python/src/ -regextype posix-extended -regex '.*\.(c|cpp|h|hpp|cc|cxx|cu)') + clang-format-12 -style=file --verbose --Werror --dry-run $(CPPSOURCES) + clang-format-12 --dry-run $(PYTHONCPPSOURCES)