-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (42 loc) · 1.32 KB
/
lint.yaml
File metadata and controls
51 lines (42 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: lint
on:
pull_request:
paths:
- '**.hpp'
- '**.cpp'
- '**.clang-format'
- '**.clang-tidy'
permissions:
contents: read
jobs:
check-format-and-tidy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare Vulkan SDK
uses: humbletim/setup-vulkan-sdk@v1.2.1
with:
vulkan-query-version: 1.4.328.1
vulkan-components: Vulkan-Headers, Vulkan-Loader
vulkan-use-cache: true
- uses: jidicula/clang-format-action@v4.11.0
with:
clang-format-version: '17'
check-path: 'etna'
fallback-style: 'none'
- uses: ZedThree/clang-tidy-review@v0.21.0
id: review
with:
apt_packages: 'wget,libx11-dev'
build_dir: build
cmake_command: |
cmake -Bbuild -S. -DCMAKE_EXPORT_COMPILE_COMMANDS=on
clang_tidy_checks: '' # Use closest .clang-tidy config, not some weird default
split_workflow: true # So that comments work with fork PRs
# Upload review results as artifacts, a different workflow posts them
# as comments. This is required due to security stuff.
- uses: ZedThree/clang-tidy-review/upload@v0.21.0
id: upload-review
# If there are any comments, fail the check
- if: steps.review.outputs.total_comments > 0
run: exit 1