Feature/cmake dependencies #54
This file contains 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: | |
push: | |
branches: | |
- main | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- 'README.md' | |
workflow_dispatch: | |
jobs: | |
cmake-formatting-check: | |
name: CMake Formatting Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Delete extern directory | |
# Very hacky but the action doesn't allow excluding directories | |
# and for some reason the checkout action checks out submodules even though it shouldn't | |
run: rm -rf ./extern | |
- name: Format CMake files | |
id: cmake-format | |
uses: Hespian/cmake-format-action@main | |
with: | |
args: --config-files .cmake-format.py --check |