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 deb6fdaCopy full SHA for deb6fda
.github/workflows/format.yml
@@ -0,0 +1,24 @@
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
+jobs:
12
+ cmake-format:
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - name: Install cmake-format
17
+ run: |
18
+ python -m pip install --upgrade pip
19
+ pip install cmake_format
20
+ - name: Run cmake-format
21
22
+ find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -exec cmake-format -i {} \;
23
+ - name: Check format
24
+ run: git diff --exit-code
0 commit comments