Add CI. #2
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: Check clang-format | |
on: | |
push: | |
branches: | |
- '**' | |
pull_request: | |
branches: | |
- '**' | |
jobs: | |
clang-format: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout repository code | |
uses: actions/checkout@v3 | |
- name: Install clang-format-10 | |
run: | | |
sudo apt-get -y -qq update | |
sudo apt-get -y -qq install clang-format-10 | |
- name: Run clang-format-check | |
run: | | |
./.clang-format-check.sh | |