Skip to content

Commit 52d6189

Browse files
committed
[CI] Add clang-format check for workflows
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
1 parent c15594e commit 52d6189

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: clang-format Check
2+
on: [push, pull_request]
3+
jobs:
4+
formatting-check:
5+
name: Formatting Check
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
path:
10+
- 'src'
11+
- 'include'
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Run clang-format style check.
15+
uses: jidicula/clang-format-action@v4.10.2
16+
with:
17+
clang-format-version: '14'
18+
check-path: ${{ matrix.path }}

0 commit comments

Comments
 (0)