Skip to content

Commit

Permalink
Modified GitHub actions file
Browse files Browse the repository at this point in the history
  • Loading branch information
Zang3th committed Apr 25, 2024
1 parent 04b776e commit 73f2b57
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/build_and_analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Build debug config
run: |
cmake -B ${{github.workspace}}/Build_Debug -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-g" -D CMAKE_EXPORT_COMPILE_COMMANDS=On
cmake -B ${{github.workspace}}/Build_Debug -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-g"
cmake --build ${{github.workspace}}/Build_Debug -j
- name: Run GreenWorld_Debug
Expand Down Expand Up @@ -68,9 +68,14 @@ jobs:
sudo apt install pvs-studio
pvs-studio-analyzer credentials ${{secrets.PVS_STUDIO_CREDENTIALS}}
- name: Build debug config
run: |
cmake -B ${{github.workspace}}/Build_Debug_PVS -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-g" -D CMAKE_EXPORT_COMPILE_COMMANDS=On
cmake --build ${{github.workspace}}/Build_Debug -j
- name: Analyze debug config
run: |
pvs-studio-analyzer analyze -f ${{github.workspace}}/Build_Debug/compile_commands.json -j -e Vendor/
pvs-studio-analyzer analyze -f ${{github.workspace}}/Build_Debug_PVS/compile_commands.json -j -e Vendor/
- name: Convert report
run: plog-converter -t sarif -o pvs-report.sarif PVS-Studio.log
Expand Down

0 comments on commit 73f2b57

Please sign in to comment.