We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b91358 commit 6b2efcdCopy full SHA for 6b2efcd
.github/workflows/code-style.yml
@@ -0,0 +1,23 @@
1
+name: Code Style CI
2
+
3
+on:
4
+ push:
5
+ branches: [ master ]
6
+ pull_request:
7
8
9
+jobs:
10
+ build:
11
12
+ runs-on: ubuntu-latest
13
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - name: Install clang-format
17
+ run: |
18
+ sudo apt-get update
19
+ sudo apt install clang-format
20
+ - name: C/CPP code style check
21
22
+ find . -iname *.h -o -iname *.c -o -iname *.cpp -o -iname *.hpp -o -iname *.tcc | \
23
+ xargs clang-format --style="{BasedOnStyle: llvm, IndentWidth: 4}" --dry-run --Werror
0 commit comments