-
Notifications
You must be signed in to change notification settings - Fork 225
40 lines (40 loc) · 1.21 KB
/
clang-format-check.yml
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
name: clang-format Check
on: [push, pull_request, workflow_dispatch]
jobs:
formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
path:
- check: "lib/compiler"
- check: "lib/ffi"
- check: "lib/fmt"
- check: "lib/kernels"
- check: "lib/op-attrs"
- check: "lib/pcg"
- check: "lib/runtime/ffi"
- check: "lib/runtime/include"
- check: "lib/runtime/src"
- check: "lib/runtime/test"
- check: "lib/substitutions"
- check: "lib/triton"
- check: "lib/utils"
- check: "python"
- check: "scripts"
- check: "tests"
- check: "examples"
- check: "bindings"
- check: "config"
- check: "deps"
- check: "packaging"
- check: "substitutions"
steps:
- uses: actions/checkout@v2
- name: Run clang-format style check for C/C++/Protobuf programs.
uses: jidicula/clang-format-action@v4.8.0
with:
clang-format-version: "15"
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}