1
0
mirror of https://github.com/nzeemin/ukncbtl-utils.git synced 2025-04-18 06:04:02 +03:00

Root Makefile, PVS-Studio analysis GitHub action

This commit is contained in:
nzeemin 2022-11-26 02:33:46 +03:00
parent c21f2dbdf2
commit 9c666a4924
3 changed files with 53 additions and 1 deletions

32
.github/workflows/pvs-studio.yml vendored Normal file
View File

@ -0,0 +1,32 @@
name: PVS-Studio analysis
on: workflow_dispatch
jobs:
build-analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install PVS Studio
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 install pvs-studio
pvs-studio-analyzer credentials ${{ secrets.PVS_STUDIO_CREDENTIALS }}
- name: Build
run: |
pvs-studio-analyzer trace -- make
- name: Analyze
run: |
pvs-studio-analyzer analyze
continue-on-error: true
- name: Convert
run: |
mkdir Results
plog-converter -t html,totals -d V536,V1042 -o ./Results/ ./PVS-Studio.log
- name: Upload the report
uses: actions/upload-artifact@v3
with:
name: ukncbtl-utils-pvs
path: ./Results/

8
.gitignore vendored
View File

@ -1,5 +1,11 @@
/Debug
/Release
*.suo
*.user
*.suppress
*.sdf
*.opensdf
*.suo
.vs
*.VC.db
ipch
/x-*

14
Makefile Normal file
View File

@ -0,0 +1,14 @@
# List all the sub-projects
SUBDIRS = ESCParser rt11dsk Sav2Cartridge sav2wav SavDisasm
.PHONY: subdirs $(SUBDIRS)
subdirs: $(SUBDIRS)
$(SUBDIRS): FORCE
$(MAKE) -C $@
# A target without prerequisites and a recipe, and there is no file named `FORCE`.
# `make` will always run this and any other target that depends on it.
FORCE: