Skip to content

Commit d14dcd6

Browse files
committed
[CI] Add diff print to CMake style check
1 parent 3c2513c commit d14dcd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pr_push.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,12 @@ jobs:
141141
run: cmake --build build --target clang-format-check
142142

143143
- name: Check CMake formatting
144-
run: cmake --build build --target cmake-format-check
144+
run: |
145+
cmake --build build --target cmake-format-apply
146+
if ! git diff | wc -l | grep -q "^0$"; then
147+
echo "Errors found:"
148+
git diff --exit-code
149+
fi
145150
146151
- name: Check Python formatting
147152
run: cmake --build build --target black-format-check

0 commit comments

Comments
 (0)