aseprite/.github/workflows/clang_tidy.yml

33 lines
859 B
YAML
Raw Normal View History

2024-02-27 14:50:07 +00:00
name: Clang Tidy Diff
on:
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'
permissions:
contents: read
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.14.0
2024-02-27 14:50:07 +00:00
id: review
with:
build_dir: build
config_file: .clang-tidy
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: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DLAF_BACKEND=none -DCMAKE_EXPORT_COMPILE_COMMANDS=on
- uses: ZedThree/clang-tidy-review/upload@v0.14.0
2024-02-27 14:50:07 +00:00
id: upload-review