Skip to content

Commit d2d0119

Browse files
[ci] Use home-baked clang-format action
1 parent ec061dd commit d2d0119

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/style-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ 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 fetch origin ${{ github.event.pull_request.base.sha }}
15+
git clang-format --diff ${{ github.event.pull_request.base.sha }} | tee diff.patch
16+
! grep -q '^diff ' diff.patch
1717
inlining-check:
1818
runs-on: ubuntu-latest
1919
name: Check inline keyword usage

0 commit comments

Comments
 (0)