aseprite/.github/workflows/clang_tidy.yml

30 lines
886 B
YAML
Raw Normal View History

2024-02-27 14:50:07 +00:00
name: Clang Tidy Diff
on:
pull_request_target:
paths:
- '**.cpp'
- '**.h'
2024-02-27 15:07:19 +00:00
- '.github/workflows/clang_tidy.yml'
2024-02-27 14:50:07 +00:00
jobs:
review:
2024-02-27 14:50:07 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: ZedThree/clang-tidy-review@v0.17.1
id: review
with:
token: ${{ secrets.CLANG_TIDY_TOKEN }}
build_dir: build
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 16:49:32 +00:00
cmake -S . B build -DCMAKE_BUILD_TYPE=Debug -DLAF_BACKEND=none -DCMAKE_EXPORT_COMPILE_COMMANDS=on
2024-02-27 14:50:07 +00:00
- uses: ZedThree/clang-tidy-review/upload@v0.17.1
id: upload-review
- if: steps.review.outputs.total_comments > 0
run: exit 1