Skip to content

Fix emscripten config #2915

Fix emscripten config

Fix emscripten config #2915

# 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