-
Notifications
You must be signed in to change notification settings - Fork 3
67 lines (60 loc) · 2.2 KB
/
static-analysis.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Enigma Static Analysis task using CppCheck
# https://github.com/marketplace/actions/cppcheck-action
name: static-analysis
# analyse on pushs and pull requests on master branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
name: cppcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Make report outputs dir
run: mkdir ./outputs
# CppCheck analysis task win64
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
check_library: disable
skip_preprocessor: disable
enable: performance,portability,warning
exclude_check: ./lib/
inconclusive: disable
inline_suppression: disable
force_language: c++
force: enable
max_ctu_depth: 12
platform: win64
std: c++20
output_file: ./outputs/cppcheck-report-win64.txt
# CppCheck analysis task unix64
- name: cppcheck
uses: deep5050/cppcheck-action@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
check_library: disable
skip_preprocessor: disable
enable: performance,portability,warning
exclude_check: ./lib/
inconclusive: disable
inline_suppression: disable
force_language: c++
force: enable
max_ctu_depth: 12
platform: unix64
std: c++20
output_file: ./outputs/cppcheck-report-unix64.txt
- name: Publish cppcheck report
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # NOTE you must enable Read+write permissions in repository Settings -> Actions -> Workflow permissions -> toggle on Read and write permissions
publish_branch: static-analysis-reports
publish_dir: ./outputs # from
destination_dir: . # to - deploy to a subdirectory: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-deploy-to-subdirectory-destination_dir
commit_message: cppcheck reports - ${{ github.event.head_commit.message }}
enable_jekyll: false