feat: enhance hooks management with install, uninstall, and run options #30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CMake Format Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| cmake-format: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Common CI setup | |
| uses: ./.github/actions/common-ci | |
| with: | |
| python-version: "3.x" | |
| - name: Install cmake-format | |
| run: pip install cmake-format | |
| - name: Run cmake-format check | |
| run: | | |
| files=$(git ls-files '*.cmake' 'CMakeLists.txt' 'libs/**/CMakeLists.txt' 'apps/**/CMakeLists.txt' || true) | |
| if [ -n "$files" ]; then | |
| cmake-format -c .cmake-format --check $files | |
| fi |