Skip to content

Commit 255ebc5

Browse files
authored
Create clang-format.yml
1 parent c8166dd commit 255ebc5

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/clang-format.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
- 'examples'
12+
- 'include'
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Run clang-format style check for C/C++/Protobuf programs.
16+
uses: jidicula/[email protected]
17+
with:
18+
clang-format-version: '13'
19+
check-path: ${{ matrix.path }}

0 commit comments

Comments
 (0)