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