Skip to content

Commit 1b26712

Browse files
S1eGamisonijnik
authored andcommitted
[chore] clang-format CI check replaced with pre-commit hook using clang-format.
1 parent ebca2f3 commit 1b26712

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/build.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@ jobs:
213213
clang-format:
214214
runs-on: ubuntu-latest
215215
steps:
216-
- name: Checkout KLEE Code
217-
uses: actions/checkout@v2
218-
- name: Run clang-format on KLEE Code
219-
uses: jidicula/[email protected]
220-
with:
221-
clang-format-version: '13'
222-
include-regex: '(^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|((ino|pde|proto|cu))$)|^(include|lib)\/.*\.inc)$'
216+
- uses: actions/checkout@v3
217+
- uses: actions/setup-python@v4
218+
with:
219+
python-version: 3.x
220+
- uses: pre-commit/[email protected]
221+
- uses: pre-commit-ci/[email protected]
222+
if: always()

.pre-commit-config.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
files: '(^.*\.((((c|C)(c|pp|xx|\+\+)?$)|((h|H)h?(pp|xx|\+\+)?$))|((ino|pde|proto|cu))$)|^(include|lib)\/.*\.inc)$'
2+
3+
repos:
4+
- repo: https://github.com/pre-commit/mirrors-clang-format
5+
rev: v13.0.1
6+
hooks:
7+
- id: clang-format

0 commit comments

Comments
 (0)