-
-
Notifications
You must be signed in to change notification settings - Fork 28
49 lines (45 loc) · 1013 Bytes
/
lint-cpp.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Validate C++
on:
push:
branches:
- main
paths:
- ".github/workflows/lint-cpp.yml"
- "**/*.h"
- "**/*.hpp"
- "**/*.cpp"
- "**/*.c"
- "**/*.mm"
paths-ignore:
- "node_modules"
- "**/node_modules"
pull_request:
paths:
- ".github/workflows/lint-cpp.yml"
- "**/*.h"
- "**/*.hpp"
- "**/*.cpp"
- "**/*.c"
- "**/*.mm"
paths-ignore:
- "node_modules"
- "**/node_modules"
jobs:
lint:
name: Check clang-format
runs-on: ubuntu-latest
strategy:
matrix:
path:
- "package/android/src/main/cpp"
- "package/cpp"
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
- name: Install npm dependencies (bun)
run: bun install
- name: Run clang-format style check
uses: jidicula/[email protected]
with:
clang-format-version: "18"
check-path: ${{ matrix.path }}