Skip to content

Commit

Permalink
CI: Activate Cppcheck Premium action again and use Misra C++ 2023 che…
Browse files Browse the repository at this point in the history
…ckers
  • Loading branch information
danmar committed Aug 4, 2024
1 parent ef487ad commit 7faba12
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 206 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/cppcheck-premium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ 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
premium_version=devdrop-20240804
wget https://files.cppchecksolutions.com/devdrop/cppcheckpremium-$premium_version-amd64.tar.gz -O cppcheckpremium.tar.gz
else
wget https://files.cppchecksolutions.com/$premium_version/ubuntu-22.04/cppcheckpremium-$premium_version-amd64.tar.gz -O cppcheckpremium.tar.gz
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
Expand All @@ -48,4 +48,4 @@ jobs:
- 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
cppcheckpremium/cppcheck -j$(nproc) -D__GNUC__ -D__CPPCHECK__ --suppressions-list=cppcheckpremium-suppressions --platform=unix64 --enable=style --premium=misra-c++-2023 --premium=cert-c++-2016 --inline-suppr --error-exitcode=1 lib
Loading

0 comments on commit 7faba12

Please sign in to comment.