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 7c0dcde commit 021ba8bCopy full SHA for 021ba8b
.github/workflows/cmake-lint.yml
@@ -0,0 +1,26 @@
1
+name: CMake Lint
2
+
3
+on:
4
+ pull_request:
5
+ paths:
6
+ - "**/CMakeLists.txt"
7
+ - "**/*.cmake"
8
+ push:
9
10
11
12
+ workflow_dispatch:
13
14
+jobs:
15
+ cmake-lint:
16
+ name: Check CMake formatting
17
+ runs-on: ubuntu-latest
18
+ steps:
19
+ - name: Checkout repository
20
+ uses: actions/checkout@v4
21
+ - name: Install cmake-format
22
+ run: python3 -m pip install cmakelang
23
+ - name: Run cmake-format
24
+ run: |
25
+ files=$(git ls-files '**/CMakeLists.txt' 'cmake/*.cmake')
26
+ cmake-format --check $files
0 commit comments