Skip to content

simpler action with reviewdog #5

simpler action with reviewdog

simpler action with reviewdog #5

Workflow file for this run

name: clang-tidy-review
on:
pull_request:
paths:
- '**.c'
- '**.h'
jobs:
clang-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: CMake
env:
CC: clang
run: cd ./sdks/c && cmake -B ./build -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
- name: reviewdog with clang-tidy
uses: arkedge/action-clang-tidy
with:
workdir: cd ./sdks/c/build
- name: Build
run: cd ./sdks/c && cmake -S . --build ./build