Skip to content

Commit cc2b4f9

Browse files
[ci] Use stock clang-format for diff
1 parent ec061dd commit cc2b4f9

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/style-check.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v2
12-
- name: Run clang-format style check for C/C++ programs.
13-
uses: jidicula/clang-format-action@v4.11.0
14-
with:
15-
clang-format-version: '17'
16-
exclude-regex: 'doctest.h'
12+
- run: sudo apt install clang-format
13+
- run: |
14+
git clang-format --diff origin/master | tee diff.patch
15+
! grep -q '^diff ' diff.patch
1716
inlining-check:
1817
runs-on: ubuntu-latest
1918
name: Check inline keyword usage

0 commit comments

Comments
 (0)