-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update runner used by clang-format and clang-tidy, and don't pin to c…
…lang-tidy-12 Signed-off-by: Michael Warres <[email protected]>
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ jobs: | |
addlicense: | ||
name: verify licenses | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -61,7 +61,7 @@ jobs: | |
buildifier: | ||
name: check format with buildifier | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
@@ -99,29 +99,29 @@ jobs: | |
clang_format: | ||
name: check format with clang-format | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies (Linux) | ||
run: sudo apt update -y && sudo apt install -y clang-format-12 | ||
run: sudo apt update -y && sudo apt install -y clang-format | ||
|
||
- name: Format (clang-format) | ||
run: | | ||
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format-12 -i | ||
find . -name "*.h" -o -name "*.cc" -o -name "*.proto" | grep -v ".pb." | xargs -n1 clang-format -i | ||
git diff --exit-code | ||
clang_tidy: | ||
name: check format with clang-tidy | ||
|
||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Install dependencies (Linux) | ||
run: sudo apt update -y && sudo apt install -y clang-tidy-12 lld-12 && sudo ln -sf /usr/bin/lld-12 /usr/bin/lld | ||
run: sudo apt update -y && sudo apt install -y clang-tidy lld | ||
|
||
- name: Bazel cache | ||
uses: PiotrSikora/[email protected] | ||
|