-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathmediasoup-worker-clang-tidy.yaml
More file actions
67 lines (55 loc) · 2.06 KB
/
Copy pathmediasoup-worker-clang-tidy.yaml
File metadata and controls
67 lines (55 loc) · 2.06 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: mediasoup-worker-clang-tidy
on:
pull_request:
paths:
- 'worker/src/**/*.cpp'
- 'worker/include/**/*.hpp'
- 'worker/test/src/**/*.cpp'
- 'worker/test/include/**/*.hpp'
- 'worker/fuzzer/src/**/*.cpp'
- 'worker/fuzzer/include/**/*.hpp'
- 'worker/meson.build'
- 'worker/tasks.py'
- 'worker/.clang-format'
- 'worker/.clang-tidy'
- '.github/workflows/mediasoup-worker-clang-tidy.yaml'
concurrency:
# Cancel a currently running workflow from the same PR, branch or tag when a
# new workflow is triggered.
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
clang-tidy:
runs-on: ubuntu-26.04
steps:
- uses: actions/checkout@v6
- name: Install dependencies
run: pip3 install --break-system-packages invoke
- name: Setup Meson build (generates compile_commands.json)
working-directory: worker
env:
MESON_ARGS: '-Dms_build_tests=true'
run: invoke setup
- name: Compile flatbuffers FBS files
working-directory: worker
run: invoke flatc
- name: Install NPM worker development tools
run: npm ci --prefix worker/scripts --foreground-scripts
- name: Normalize compile_commands.json paths
run: npm run normalize-compile-commands --prefix worker/scripts --foreground-scripts
- uses: ZedThree/clang-tidy-review@v0.23.1
id: review
with:
apt_packages: 'libclang-rt-21-dev'
build_dir: 'worker/out/Release/build'
config_file: 'worker/.clang-tidy'
clang_tidy_version: '21'
lgtm_comment_body: ''
extra_arguments: --quiet
include: 'worker/src/**/*.cpp,worker/test/src/**/*.cpp,worker/fuzzer/src/**/*.cpp'
# Uploads an artifact containing clang_fixes.json.
- uses: ZedThree/clang-tidy-review/upload@v0.23.1
id: upload-review
# If there are any comments, fail the check.
- if: steps.review.outputs.total_comments > 0
run: exit 1