Skip to content

Commit 58ec66d

Browse files
committed
Add clang-format check
1 parent 763f275 commit 58ec66d

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/clang-format.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test-clang-format
2+
on: [push,pull_request]
3+
4+
jobs:
5+
clang-format-checking:
6+
runs-on: ubuntu-latest
7+
permissions:
8+
contents: read
9+
steps:
10+
- uses: actions/checkout@v4
11+
- uses: DoozyX/clang-format-lint-action@v0.20
12+
with:
13+
source: "."
14+
exclude: "tests"
15+
extensions: 'h,cpp'
16+
style: file
17+
clangFormatVersion: 20

0 commit comments

Comments
 (0)