aseprite/.github/workflows/clang_tidy.yml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
859 B
YAML
Raw Permalink 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'
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:
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
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