-
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 795 Bytes
/
Copy pathcppcheck.yml
File metadata and controls
27 lines (27 loc) · 795 Bytes
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
name: Create cppcheck report
on: workflow_dispatch
jobs:
create-cppcheck-report:
runs-on: ubuntu-latest
steps:
- name: Install cppcheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- uses: actions/checkout@v7
with:
submodules: true
fetch-depth: 800
fetch-tags: true
- name: Run cppcheck
run: |
VERSION=$(src/getversion.sh -n) &&
DEST="smartmontools-cppcheck-$VERSION.txt" &&
echo "Creating $DEST..." &&
src/cppcheck.sh -j6 -q | tee "$DEST"
- name: Upload artifact
uses: actions/upload-artifact@v7
with:
name: smartmontools-cppcheck
path: smartmontools-cppcheck-*.txt
retention-days: 30