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:
parent
6b6fa3f111
commit
2565900f90
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue