-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (62 loc) · 2.3 KB
/
clang-tidy-review.yml
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: clang-tidy-review
on:
pull_request:
paths:
- '**.cpp'
- '**.cxx'
- '**.cc'
- '**.h'
- '**.hxx'
- '**.c'
- '**.hpp'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
review:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'true'
fetch-depth: 0
- name: Run clang-tidy
uses: ZedThree/[email protected]
id: review
with:
build_dir: _build
apt_packages: "cmake,ninja-build,libprotobuf-dev,libprotoc-dev,protobuf-compiler"
config_file: ".clang-tidy"
exclude: "ecal/core/src/serialization/nanopb/*,thirdparty/*,_build/*,convert_utf.cpp,convert_utf.h,tests/*"
split_workflow: true
lgtm_comment_body: ""
cmake_command: |
cmake . -B _build \
-G Ninja \
-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=submodule_dependencies.cmake \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-DECAL_CORE_HAS_PROTOBUF=ON \
-DECAL_CORE_BUILD_SAMPLES=ON \
-DECAL_CORE_BUILD_TESTS=ON \
-DECAL_CORE_CONFIGURATION=ON \
-DECAL_CORE_COMMAND_LINE=ON \
-DECAL_CORE_REGISTRATION=ON \
-DECAL_CORE_REGISTRATION_SHM=ON \
-DECAL_CORE_MONITORING=ON \
-DECAL_CORE_PUBLISHER=ON \
-DECAL_CORE_SUBSCRIBER=ON \
-DECAL_CORE_SERVICE=ON \
-DECAL_CORE_TIMEPLUGIN=ON \
-DECAL_CORE_TRANSPORT_UDP=ON \
-DECAL_CORE_TRANSPORT_TCP=ON \
-DECAL_CORE_TRANSPORT_SHM=ON \
-DECAL_CORE_NPCAP_SUPPORT=OFF \
-DECAL_THIRDPARTY_BUILD_PROTOBUF=OFF \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
-DCMAKE_INSTALL_LIBDIR=lib/x86_FF4-linux-gnu
cmake --build _build
- uses: ZedThree/clang-tidy-review/[email protected]