Skip to content

Commit 940ebec

Browse files
author
Diptorup Deb
committed
Add a workflow to check clang-format.
1 parent 4b0ecc0 commit 940ebec

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/clang-format.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This is a workflow to format C/C++ sources with clang-format
2+
3+
name: clang-format Check
4+
5+
# Controls when the action will run. Triggers the workflow on push or pull request
6+
# events but only for the master branch
7+
on:
8+
push:
9+
branches: [master]
10+
pull_request:
11+
branches: [master]
12+
13+
jobs:
14+
formatting-check:
15+
name: Formatting Check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Run clang-format style check for C/C++ programs.
20+
uses: jidicula/[email protected]
21+
with:
22+
clang-format-version: '11'
23+
check-path: 'dpctl-capi'

0 commit comments

Comments
 (0)