Types.hpp got split into real type definitions and global parameter s… #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Static analysis | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
static_analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install tools | |
run: | | |
wget -q -O - https://files.pvs-studio.com/etc/pubkey.txt \ | |
| sudo apt-key add - | |
sudo wget -O /etc/apt/sources.list.d/viva64.list \ | |
https://files.pvs-studio.com/etc/viva64.list | |
sudo apt update && sudo apt upgrade | |
sudo apt install pvs-studio | |
pvs-studio-analyzer credentials ${{ secrets.PVS_STUDIO_CREDENTIALS }} | |
sudo apt install libglu1-mesa-dev mesa-common-dev | |
- name: Build | |
run: | | |
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=On -B build . | |
cmake --build build -j | |
- name: Analyze | |
run: | | |
pvs-studio-analyzer analyze -f build/compile_commands.json -j -e Vendor/ | |
- name: Convert report | |
run: | | |
plog-converter -t sarif -o pvs-report.sarif PVS-Studio.log | |
- name: Publish report | |
uses: github/codeql-action/upload-sarif@v2 | |
with: | |
sarif_file: pvs-report.sarif | |
category: PVS-Studio |