Skip to content

fix: new clang-tidy errors #269

fix: new clang-tidy errors

fix: new clang-tidy errors #269

Workflow file for this run

name: CI
on:
workflow_dispatch:
push:
branches-ignore:
- ros1*
pull_request:
branches-ignore:
- ros1*
jobs:
industrial_ci:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ROS_DISTRO: [humble, jazzy, kilted, rolling]
ROS_REPO: [testing, main]
env:
ROS_DISTRO: ${{ matrix.ROS_DISTRO }}
ROS_REPO: ${{ matrix.ROS_REPO }}
CMAKE_ARGS: ${{ matrix.ROS_DISTRO == 'rolling' && '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DENABLE_CLANG_TIDY=ON' || '' }}
# gcc-16 is installed on the rolling image alongside gcc-15 but without its
# libstdc++ headers, so clang-tidy (which auto-selects the newest GCC found)
# fails with "'chrono'/'string'/'memory' file not found". Installing
# libstdc++-16-dev fixes this.
ADDITIONAL_DEBS: ${{ matrix.ROS_DISTRO == 'rolling' && 'libstdc++-16-dev' || '' }}
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Source tests
uses: "ros-industrial/industrial_ci@master"