Move ci functions to this repo #203
Workflow file for this run
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: Code Style | |
on: [pull_request] | |
jobs: | |
formatting: | |
name: CMake | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo pip install cmake-format black | |
- name: Clang Format | |
run: ./script/clang-format --check | |
- name: CMake Format | |
run: | | |
find . -name 'CMakeLists.txt' -o -name '*.cmake' > cmake-src | |
xargs cmake-format --check < cmake-src | |
- name: Black | |
run: | | |
black --check . |