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 5254f09 commit e67c447Copy full SHA for e67c447
.github/workflows/format.yml
@@ -0,0 +1,30 @@
1
+# Based on https://dev.to/10xlearner/formatting-cmake-4dle
2
+name: Check formatting
3
+
4
+on:
5
+ push:
6
+ branches: [development, main]
7
+ paths-ignore:
8
+ - 'README.md'
9
+ - 'INSTALL.md'
10
+ - 'docs/**'
11
+ pull_request:
12
13
14
15
16
17
+jobs:
18
+ cmake-format:
19
+ runs-on: ubuntu-latest
20
+ steps:
21
+ - uses: actions/checkout@v4
22
+ - name: Install cmake-format
23
+ run: |
24
+ python -m pip install --upgrade pip
25
+ pip install cmake_format
26
+ - name: Run cmake-format
27
28
+ find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -exec cmake-format -i {} \;
29
+ - name: Check format
30
+ run: git diff --exit-code
0 commit comments