Skip to content

Commit 1b2e94b

Browse files
authored
More verbose output for clang action
1 parent eed469e commit 1b2e94b

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

Diff for: .github/workflows/check-format.yml

+18-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,29 @@
1+
12
name: CI-format-check
23

34
on:
45
push:
6+
paths:
7+
- '**.h'
8+
- '**.c'
9+
- '.github/workflows/check-format.yml'
10+
- '.clang-format'
511
pull_request:
12+
paths:
13+
- '**.h'
14+
- '**.c'
15+
- '.github/workflows/check-format.yml'
16+
- '.clang-format'
617

718
jobs:
819
check-format:
920
runs-on: ubuntu-latest
10-
steps:
11-
- name: Install dependencies
12-
shell: bash
13-
run: sudo apt-get install git make clang-format
1421

22+
steps:
1523
- uses: actions/checkout@v2
16-
17-
- name: Check format -> make format-check
18-
run: make format-check
24+
- uses: DoozyX/clang-format-lint-action@v0.12
25+
with:
26+
source: '.'
27+
extensions: 'h,c'
28+
clangFormatVersion: 12
29+
inplace: False

0 commit comments

Comments
 (0)