-
Notifications
You must be signed in to change notification settings - Fork 55
49 lines (43 loc) · 1.45 KB
/
cpp-linter.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: cpp-linter
on:
push:
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/cpp-linter.yml'
pull_request:
paths-ignore:
- '.github/workflows/**'
- '!.github/workflows/cpp-linter.yml'
workflow_dispatch:
jobs:
cpp-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 📂 Load .env file
if: hashFiles('.github/workflows/.env') != ''
uses: xom9ikk/dotenv@v2
with:
path: .github/workflows
- name: ⬇️ Setup CMake
uses: lukka/get-cmake@latest
with:
cmakeVersion: ^3
ninjaVersion: ^1.11.1
- name: 🔧 Configure
run: cmake -S ${{ env.CMAKE_SOURCE_PREFIX }} -B ${{ env.CMAKE_BINARY_PREFIX }} -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -DCMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} -DCMAKE_PREFIX_PATH="~/micromamba" -DCMAKE_INSTALL_PREFIX=${{ env.CMAKE_INSTALL_PREFIX }} -D CPPTERMINAL_ENABLE_DOCS=OFF
- name: ☑️ cpp-linter
uses: cpp-linter/cpp-linter-action@v3
id: linter
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
style: 'file'
database: ${{ env.CMAKE_BINARY_PREFIX }}
step-summary: true
thread-comments: true
files-changed-only: true
lines-changed-only: false
version: '17'
tidy-checks: ''
ignore: '.github|${{ env.CMAKE_BINARY_PREFIX }}/_deps'