-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (35 loc) · 1.31 KB
/
pvs-studio.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
name: PVS-Studio analysis
on: workflow_dispatch
defaults:
run:
shell: cmd
jobs:
build-analyze:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Download PVS Studio
uses: suisei-cn/[email protected]
with:
url: https://files.pvs-studio.com/PVS-Studio_setup.exe
target: .\Distrib
- name: Install PVS Studio
run: |
.\Distrib\PVS-Studio_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /COMPONENTS=Core
- name: Configure PVS Studio
run: |
"C:\Program Files (x86)\PVS-Studio\PVS-Studio_Cmd.exe" credentials -u ${{ secrets.PVS_STUDIO_USERNAME }} -n ${{ secrets.PVS_STUDIO_KEY }}
- name: Run PVS Studio
run: |
mkdir Results
"C:\Program Files (x86)\PVS-Studio\PVS-Studio_Cmd.exe" -t .\emulator\NEONBTL-VS2015.sln -e %GITHUB_WORKSPACE% -o .\Results\NEONBTL.plog
continue-on-error: true
- name: Convert the report
run: |
"C:\Program Files (x86)\PVS-Studio\PlogConverter.exe" -t Html,Totals -o .\Results\ -r D:\Work\MyProjects\neonbtl -d V536,V1042 .\Results\NEONBTL.plog
- name: Upload the report
uses: actions/upload-artifact@v3
with:
name: NEONBTL-PVS
path: .\Results\