Skip to content

Commit

Permalink
Update runner used by clang-format and clang-tidy, and don't pin to c…
Browse files Browse the repository at this point in the history
…lang-tidy-12

Signed-off-by: Michael Warres <[email protected]>
  • Loading branch information
mpwarres committed Aug 19, 2024
1 parent 4de318c commit 6257b58
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
addlicense:
name: verify licenses

runs-on: ubuntu-20.04
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v2
Expand All @@ -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
Expand Down Expand Up @@ -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]
Expand Down

0 comments on commit 6257b58

Please sign in to comment.