2024-02-27 14:50:07 +00:00
|
|
|
name: Clang Tidy Diff
|
|
|
|
on:
|
2024-02-27 18:41:07 +00:00
|
|
|
pull_request:
|
2024-02-27 14:50:07 +00:00
|
|
|
paths:
|
|
|
|
- '**.cpp'
|
|
|
|
- '**.h'
|
2024-02-27 15:07:19 +00:00
|
|
|
- '.github/workflows/clang_tidy.yml'
|
2024-02-27 22:07:53 +00:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2024-02-27 14:50:07 +00:00
|
|
|
jobs:
|
2024-02-27 15:19:32 +00:00
|
|
|
review:
|
2024-02-27 14:50:07 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
with:
|
|
|
|
submodules: 'recursive'
|
2024-11-27 18:20:15 +00:00
|
|
|
- uses: ZedThree/clang-tidy-review@v0.20.1
|
2024-02-27 14:50:07 +00:00
|
|
|
id: review
|
|
|
|
with:
|
2024-02-27 15:05:38 +00:00
|
|
|
build_dir: build
|
2024-02-27 16:55:43 +00:00
|
|
|
config_file: .clang-tidy
|
2024-02-27 22:07:53 +00:00
|
|
|
split_workflow: true
|
2024-02-27 14:50:07 +00:00
|
|
|
apt_packages: |
|
|
|
|
libc++-dev, libc++abi-dev, libpixman-1-dev,
|
|
|
|
libfreetype6-dev, libharfbuzz-dev, zlib1g-dev, libx11-dev,
|
2024-02-27 16:49:32 +00:00
|
|
|
libxcursor-dev, libxi-dev, libgl1-mesa-dev
|
2024-02-27 14:50:07 +00:00
|
|
|
cmake_command: |
|
2024-02-27 17:11:02 +00:00
|
|
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DLAF_BACKEND=none -DCMAKE_EXPORT_COMPILE_COMMANDS=on
|
2024-11-27 18:20:15 +00:00
|
|
|
- uses: ZedThree/clang-tidy-review/upload@v0.20.1
|
2024-02-27 14:50:07 +00:00
|
|
|
id: upload-review
|