-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (41 loc) · 1.29 KB
/
cmake-single-platform.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
name: CMake on a single platform
on:
push:
branches:
- main
paths:
- '**.h'
- '**.c'
- '**.cpp'
- 'CMakeLists.txt'
pull_request:
branches:
- main
paths:
- '**.h'
- '**.c'
- '**.cpp'
- 'CMakeLists.txt'
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install PVS-Studio
run: choco install pvs-studio --package-parameters="'/standalone'"
shell: cmd
- name: PVS-Setup License
run: |
& 'C:\Program Files (x86)\PVS-Studio\PVS-Studio_Cmd.exe' credentials --userName ${{ secrets.PVS_STUDIO_USER_NAME }} --licenseKey ${{ secrets.PVS_STUDIO_LICSESE_KEY }}
shell: pwsh
- name: Configure CMake
run: cmake -B ${{github.workspace}}/testbuild -DCMAKE_EXPORT_COMPILE_COMMANDS=On -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DEFXC2_USE_PVS_STUDIO=ON -DEFXC2_USE_ALL_RULES=ON
- name: Build
run: cmake --build ${{github.workspace}}/testbuild --config ${{env.BUILD_TYPE}}
- name: Publish report
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: ${{github.workspace}}\testbuild\pvs-studio.sarif
category: PVS-Studio