Skip to content

Commit bb1c11d

Browse files
authored
[CI] Add cmake formatting check workflow (#34)
1 parent 410dea1 commit bb1c11d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/static-analysis.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ jobs:
1010
- uses: DoozyX/[email protected]
1111
with:
1212
source: '.'
13+
cmake-format:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install cmakelang
18+
run: |
19+
python3 -m pip install cmakelang
20+
- name: Check CMake formatting
21+
run: cmake-format --check $(git ls-files '*.cmake' 'CMakeLists.txt')
1322
python-lint:
1423
runs-on: ubuntu-latest
1524
steps:

0 commit comments

Comments
 (0)