-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (49 loc) · 1.38 KB
/
cpp_linter.yml
File metadata and controls
55 lines (49 loc) · 1.38 KB
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
50
51
52
53
54
55
name: CPP Linter
on:
push:
paths-ignore:
- '.clang*'
- '.gitignore'
- 'LICENSE'
- 'README*'
pull_request:
paths-ignore:
- '.clang*'
- '.gitignore'
- 'LICENSE'
- 'README*'
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 1
- uses: ./.github/actions/install-dependencies
- name: Configure and build on ubuntu
shell: bash
run: |
cmake \
-S . \
-B ./build \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
-G "Ninja" \
|| (cat ./build/vcpkg_installed/vcpkg/issue_body.md && exit 1)
cmake --build ./build --config Release
- uses: cpp-linter/cpp-linter-action@main
id: linter
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: file
files-changed-only: false
thread-comments: false
step-summary: true
database: build
ignore: .github | build
ignore-tidy: .github | Client | Icmp| Server | MonitorDir/monitordir_win.cc | MonitorDir/monitordir_mac.cc | utils
- name: Fail fast?!
if: steps.linter.outputs.clang-tidy-checks-failed > 0
run: exit 1