Fix clang-format args

Looks like clang-format in Ubuntu does not recognize glob pattern as
macOS does. Previous solution without xargs reported status code of
find itself, not clang-format.
This commit is contained in:
Alexander Batalov 2023-05-18 23:32:16 +03:00
parent 6b6fa3f111
commit 2565900f90
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ jobs:
uses: actions/checkout@v3
- name: clang-format
run: clang-format --dry-run --Werror src/**/*.cc src/**/*.h
run: find src -type f -name \*.cc -o -name \*.h | xargs clang-format --dry-run --Werror
android:
name: Android