Add clang-format to check and format code #1
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
# This workflow checks for compliance with the Google C++ style guide. | |
name: Codechecks | |
on: [push, pull_request] | |
jobs: | |
clang-format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt install clang-format | |
- name: Check code format | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
make codecheck |