Skip to content

sync-with-eclipse-ecal-2024-10-18 #154

sync-with-eclipse-ecal-2024-10-18

sync-with-eclipse-ecal-2024-10-18 #154

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]