-
Notifications
You must be signed in to change notification settings - Fork 1.1k
36 lines (31 loc) · 985 Bytes
/
clang-tidy.yml
File metadata and controls
36 lines (31 loc) · 985 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Clang-Tidy
on:
pull_request:
types: [ opened, synchronize, reopened ]
paths:
- '**.h'
- '**.c'
- '**.cpp'
- 'run-clang-tidy.sh'
- '**.clang-tidy'
- '.github/workflows/clang-tidy.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
check_clang_tidy:
if: "!contains(github.event.pull_request.labels.*.name, 'skip_buildbots')"
name: Check clang-tidy
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
# We intentionally don't use VCPKG here so that we get some
# notification that the ecosystem is moving on without us.
- name: Install clang-tidy & dependencies
run: brew install flatbuffers llvm@21 lld@21 pybind11 wabt
- name: Run clang-tidy
run: ./run-clang-tidy.sh
env:
CLANG_TIDY_LLVM_INSTALL_DIR: /opt/homebrew/opt/llvm@21