We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3584545 commit 1870b8eCopy full SHA for 1870b8e
.github/workflows/cmake-lint.yml
@@ -23,4 +23,10 @@ jobs:
23
- name: Run cmake-format
24
run: |
25
files=$(git ls-files '**/CMakeLists.txt' 'cmake/*.cmake')
26
- cmake-format --check $files
+ if ! cmake-format --check $files; then
27
+ echo "Formatting errors detected. Showing diff..."
28
+ for f in $files; do
29
+ cmake-format "$f" | diff -u "$f" -
30
+ done
31
+ exit 1
32
+ fi
0 commit comments