FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
cppcheck/.github/workflows/cppcheck-premium.yml at master · albert-github/cppcheck · GitHub
albert-github
/
cppcheck
Public
forked from
cppcheck-opensource/cppcheck
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
cppcheck
/
.github
/
workflows
/
cppcheck-premium.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
51 lines (44 loc) · 1.69 KB
Breadcrumbs
cppcheck
/
.github
/
workflows
/
cppcheck-premium.yml
Copy path
File metadata and controls
51 lines (44 loc) · 1.69 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
47
48
49
50
51
#
Syntax reference https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions
#
Environment reference https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
name
:
cppcheck-premium
on
:
push
:
branches
:
-
'
main
'
-
'
releases/**
'
tags
:
-
'
2.*
'
pull_request
:
workflow_dispatch
:
inputs
:
premium_version
:
description
:
'
Cppcheck Premium version
'
permissions
:
contents
:
read
jobs
:
build
:
runs-on
:
ubuntu-22.04
#
run on the latest image only
#
FIXME: enable after update
if
:
false
steps
:
-
uses
:
actions/checkout@v4
-
name
:
Download cppcheckpremium
run
:
|
premium_version=${{ inputs.premium_version }}
if [ -z $premium_version ]; then
premium_version=24.2.0
fi
wget https://files.cppchecksolutions.com/$premium_version/ubuntu-22.04/cppcheckpremium-$premium_version-amd64.tar.gz -O cppcheckpremium.tar.gz
tar xvzf cppcheckpremium.tar.gz
mv cppcheckpremium-$premium_version cppcheckpremium
-
name
:
Generate a license file
run
:
|
echo cppcheck > cppcheck.lic
echo 241231 >> cppcheck.lic
echo 80000 >> cppcheck.lic
echo 53b72a908d7aeeee >> cppcheck.lic
echo path:lib >> cppcheck.lic
-
name
:
Check
run
:
|
cppcheckpremium/premiumaddon --check-loc-license cppcheck.lic > cppcheck-premium-loc
cppcheckpremium/cppcheck -j$(nproc) -D__GNUC__ -D__CPPCHECK__ --suppressions-list=cppcheckpremium-suppressions --platform=unix64 --enable=style --premium=misra-c++-2008 --premium=cert-c++-2016 --inline-suppr --error-exitcode=1 lib
Back
|
FazBrowse Home
|
New Git URL