File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 1
1
name : Clang Format Check
2
2
3
3
on : [push, pull_request]
4
+
4
5
jobs :
5
6
ubuntu64 :
6
7
runs-on : ubuntu-latest
12
13
13
14
- name : Install clang format
14
15
run : |
15
- sudo apt-get install -y clang-format-10
16
+ sudo apt-get install -y clang-format-12
16
17
17
18
- name : Check the Formatting
18
19
run : |
Original file line number Diff line number Diff line change @@ -19,7 +19,11 @@ if [[ $OS = "Linux" || $OS = "Darwin" ]] ; then
19
19
fi
20
20
21
21
# Discover clang-format
22
- if type clang-format-8 2> /dev/null ; then
22
+ if type clang-format-12 2> /dev/null ; then
23
+ CLANG_FORMAT=clang-format-12
24
+ elif type clang-format-10 2> /dev/null ; then
25
+ CLANG_FORMAT=clang-format-10
26
+ elif type clang-format-8 2> /dev/null ; then
23
27
CLANG_FORMAT=clang-format-8
24
28
else
25
29
CLANG_FORMAT=clang-format
You can’t perform that action at this time.
0 commit comments