The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: add clang-tidy check step

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2592>

+35 -4
+15 -3
.gitlab-ci.yml
··· 131 131 .monado.variables.debian:bookworm: 132 132 variables: 133 133 FDO_DISTRIBUTION_VERSION: "bookworm" 134 - FDO_DISTRIBUTION_TAG: "2025-08-26" 134 + FDO_DISTRIBUTION_TAG: "2025-10-01" 135 135 136 136 # Variables for build and usage of Debian bullseye image 137 137 .monado.variables.debian:bullseye: ··· 180 180 - .fdo.container-build@debian # from ci-templates 181 181 182 182 variables: 183 - FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates clang-format cmake codespell curl debhelper devscripts doxygen dput-ng gettext-base git glslang-tools graphviz libbluetooth-dev libbsd-dev libcjson-dev libdbus-1-dev libdistro-info-perl libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev ninja-build pahole pandoc patch pipx pkg-config python3 python3-click python3-pip reprepro unzip wayland-protocols wget' 183 + FDO_DISTRIBUTION_PACKAGES: 'build-essential ca-certificates clang-format clang-tidy cmake codespell curl debhelper devscripts doxygen dput-ng gettext-base git glslang-tools graphviz libbluetooth-dev libbsd-dev libcjson-dev libdbus-1-dev libdistro-info-perl libegl1-mesa-dev libeigen3-dev libgl1-mesa-dev libglvnd-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev libhidapi-dev libopencv-dev libsdl2-dev libsystemd-dev libudev-dev libusb-1.0-0-dev libuvc-dev libv4l-dev libvulkan-dev libwayland-dev libx11-dev libx11-xcb-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev ninja-build pahole pandoc patch pipx pkg-config python3 python3-click python3-pip reprepro unzip wayland-protocols wget' 184 184 FDO_DISTRIBUTION_EXEC: 'env FDO_CI_CONCURRENT=${FDO_CI_CONCURRENT} bash .gitlab-ci/i386_and_proclamation_container_prep.sh' 185 185 186 186 # Make Debian bullseye image ··· 353 353 script: 354 354 355 355 - .gitlab-ci/prebuild.sh 356 - - .gitlab-ci/ci-cmake-build.sh -DBUILD_DOC=ON 356 + - .gitlab-ci/ci-cmake-build.sh -DBUILD_DOC=ON -DCMAKE_EXPORT_COMPILE_COMMANDS=ON 357 357 - cd build && ctest --output-on-failure 358 358 artifacts: 359 + untracked: true 359 360 paths: 360 361 - build/doc/html/ 361 362 ··· 643 644 script: 644 645 - diff -du "debian:cmake-no-opencv/ipc-sizes.txt" "debian:cmake:32bit/ipc-sizes.txt" 645 646 - cmp "debian:cmake-no-opencv/ipc-sizes.txt" "debian:cmake:32bit/ipc-sizes.txt" 647 + 648 + clang-tidy: 649 + extends: 650 + - .build-rules 651 + - .monado.image.debian:bookworm 652 + stage: check 653 + dependencies: 654 + - debian:cmake 655 + script: 656 + - file $(which run-clang-tidy) 657 + - run-clang-tidy -quiet -p build 646 658 647 659 648 660 debian:bookworm:package:
+3 -1
.gitlab-ci/config.yml
··· 73 73 # This image does some extra work. 74 74 - codename: bookworm 75 75 script: i386_and_proclamation_container_prep.sh 76 - tag: "2025-08-26" 76 + tag: "2025-10-01" 77 77 deb_version_suffix: bpo12 78 78 packages: 79 79 <<: *default_debian_packages 80 80 clang-format: 81 + clang-tidy: 81 82 codespell: 82 83 doxygen: 83 84 graphviz: ··· 99 100 artifact_path: build/doc/html/ 100 101 cmake_defines: 101 102 BUILD_DOC: "ON" 103 + CMAKE_EXPORT_COMPILE_COMMANDS: "ON" 102 104 103 105 - name: "debian:cmake-no-opencv" 104 106 pahole: true
+17
.gitlab-ci/templates/.gitlab-ci.yml.jinja
··· 169 169 {%- if job.artifact_path or job.pahole %} 170 170 171 171 artifacts: 172 + {%- if job.name == "debian:cmake"%} 173 + 174 + untracked: true 175 + {%- endif %} 176 + 172 177 paths: 173 178 {%- if job.artifact_path%} 174 179 ··· 206 211 script: 207 212 - diff -du "debian:cmake-no-opencv/ipc-sizes.txt" "debian:cmake:32bit/ipc-sizes.txt" 208 213 - cmp "debian:cmake-no-opencv/ipc-sizes.txt" "debian:cmake:32bit/ipc-sizes.txt" 214 + 215 + clang-tidy: 216 + extends: 217 + - .build-rules 218 + - .monado.image.debian:bookworm 219 + stage: check 220 + dependencies: 221 + - debian:cmake 222 + script: 223 + - file $(which run-clang-tidy) 224 + - run-clang-tidy -quiet -p build 225 + {# TODO -allow-no-checks when we have debian trixie #} 209 226 210 227 {% for distro in distributions -%} {%- for image in distro.images if "deb_version_suffix" in image %} 211 228