-
Notifications
You must be signed in to change notification settings - Fork 705
65 lines (63 loc) · 1.73 KB
/
clang-format.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: clang-format
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches:
- rel/*
- dev/*
- main
pull_request:
branches:
- rel/*
- dev/*
- main
jobs:
formatting-check:
name: check
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: "libclamav"
exclude: "(iana_cctld|bytecode_api_|bytecode_hooks|rijndael|yara|inffixed|inflate|queue|nsis|7z|regex|c++|generated)"
- check: "libfreshclam"
exclude: ""
- check: "clamav-milter"
exclude: ""
- check: "clambc"
exclude: ""
- check: "clamconf"
exclude: ""
- check: "clamd"
exclude: ""
- check: "clamdscan"
exclude: ""
- check: "clamdtop"
exclude: ""
- check: "clamonacc"
exclude: "(c-thread-pool|fts|priv_fts)"
- check: "clamscan"
exclude: ""
- check: "clamsubmit"
exclude: ""
- check: "freshclam"
exclude: ""
- check: "libfreshclam"
exclude: ""
- check: "common"
exclude: ""
- check: "sigtool"
exclude: ""
- check: "examples"
exclude: ""
- check: "win32/compat"
exclude: ""
steps:
- uses: actions/checkout@v4
- name: Run clang-format style check for C/C++ programs.
uses: jidicula/[email protected]
with:
clang-format-version: "16"
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}