-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.16 KB
/
cppcheck.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
50
name: cppcheck
on:
push:
paths:
- "include/**"
- "src/**"
- "gh-actions-rpi-cmd.sh"
- "install-deps.sh"
workflow_dispatch:
jobs:
build:
name: Build on ${{ matrix.cpu }}
runs-on: ubuntu-latest
strategy:
matrix:
base_image: ["raspios_lite:2021-05-07"]
cpu: [arm1176, cortex-a8]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Build RPI environment
uses: pguyot/arm-runner-action@v1
with:
commands: ./gh-actions-rpi-cmd.sh
base_image: ${{ matrix.base_image }}
image_additional_mb: 10000
cpu: ${{ matrix.cpu }}
optimize_image: false
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN}}
inline_suppression: enable
platform: unix32
std: c++11
other_options: --suppress=unusedFunction --suppress=missingIncludeSystem
output_file: cppcheck_report.txt
- name: Publish report
uses: mikeal/publish-to-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: main