Skip to content

Refactor for a more modern API #31

Refactor for a more modern API

Refactor for a more modern API #31

Workflow file for this run

name: clang-tidy-review
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y software-properties-common curl
sudo add-apt-repository universe
curl -fsSL https://apt.llvm.org/llvm.sh | sudo bash -s -- 19
sudo apt-get update
sudo apt-get install -y \
cmake \
clang-19 \
clang-tidy-19 \
g++ \
libeigen3-dev \
libzip-dev \
zipcmp \
zipmerge \
ziptool \
zlib1g-dev \
ninja-build
- name: Run CMake
run: |
cmake -S . -B build -G Ninja -DTRX_ENABLE_CLANG_TIDY=ON \
-DCMAKE_C_COMPILER=clang-19 \
-DCMAKE_CXX_COMPILER=clang++-19
- name: Run clang-tidy
run: |
run-clang-tidy-19 -p build src examples