File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+
3
+ name : clang-format style check
4
+
5
+ on : # yamllint disable-line rule:truthy
6
+ push :
7
+ branches : ["main"]
8
+ pull_request :
9
+ # The branches below must be a subset of the branches above
10
+ branches : ["main"]
11
+ workflow_dispatch :
12
+
13
+ jobs :
14
+ lint :
15
+ name : clang-format style check
16
+ runs-on : ubuntu-22.04
17
+
18
+ steps :
19
+ - name : Checkout repository
20
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
21
+
22
+ - name : Install dependencies
23
+ # yamllint disable rule:line-length
24
+ run : |
25
+ wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
26
+ sudo apt-add-repository "deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy main"
27
+ sudo apt-get -y update
28
+ sudo apt-get -y install --no-install-recommends --no-install-suggests clang-format
29
+ clang-format --version
30
+ # yamllint enable rule:line-length
31
+
32
+ - name : Style Check
33
+ run : make test/styling
You can’t perform that action at this time.
0 commit comments