Skip to content

Format CMake files with cmake-format #2

Format CMake files with cmake-format

Format CMake files with cmake-format #2

Workflow file for this run

name: Check Formatting
on:
push:
pull_request:
branches: [development, main]
paths-ignore:
- 'README.md'
- 'INSTALL.md'
- 'docs/**'
jobs:
cmake-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install cmake-format
run: |
python -m pip install --upgrade pip
pip install cmake_format
- name: Run cmake-format
run: |
find . \( -name '*.cmake' -o -name 'CMakeLists.txt' \) -exec cmake-format -i {} \;
- name: Check format
run: git diff --exit-code