Skip to content

Commit 6257b58

Browse files
committed
Update runner used by clang-format and clang-tidy, and don't pin to clang-tidy-12
Signed-off-by: Michael Warres <[email protected]>
1 parent 4de318c commit 6257b58

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/format.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
addlicense:
4242
name: verify licenses
4343

44-
runs-on: ubuntu-20.04
44+
runs-on: ubuntu-22.04
4545

4646
steps:
4747
- uses: actions/checkout@v2
@@ -61,7 +61,7 @@ jobs:
6161
buildifier:
6262
name: check format with buildifier
6363

64-
runs-on: ubuntu-20.04
64+
runs-on: ubuntu-22.04
6565

6666
steps:
6767
- uses: actions/checkout@v2
@@ -99,29 +99,29 @@ jobs:
9999
clang_format:
100100
name: check format with clang-format
101101

102-
runs-on: ubuntu-20.04
102+
runs-on: ubuntu-22.04
103103

104104
steps:
105105
- uses: actions/checkout@v2
106106

107107
- name: Install dependencies (Linux)
108-
run: sudo apt update -y && sudo apt install -y clang-format-12
108+
run: sudo apt update -y && sudo apt install -y clang-format
109109

110110
- name: Format (clang-format)
111111
run: |
112-
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i
112+
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format -i
113113
git diff --exit-code
114114
115115
clang_tidy:
116116
name: check format with clang-tidy
117117

118-
runs-on: ubuntu-20.04
118+
runs-on: ubuntu-22.04
119119

120120
steps:
121121
- uses: actions/checkout@v2
122122

123123
- name: Install dependencies (Linux)
124-
run: sudo apt update -y && sudo apt install -y clang-tidy-12 lld-12 && sudo ln -sf /usr/bin/lld-12 /usr/bin/lld
124+
run: sudo apt update -y && sudo apt install -y clang-tidy lld
125125

126126
- name: Bazel cache
127127
uses: PiotrSikora/[email protected]

0 commit comments

Comments
 (0)