Fix Ubuntu CI #361
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enigma Static Analysis task using CppCheck | |
# https://github.com/marketplace/actions/cppcheck-action | |
name: static-analysis | |
# analyse on pushs and pull requests on master branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: cppcheck | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# CppCheck analysis task | |
- name: cppcheck | |
uses: deep5050/cppcheck-action@main | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
check_library: disable | |
skip_preprocessor: disable | |
enable: performance,portability,warning | |
exclude_check: ./lib/ | |
inconclusive: disable | |
inline_suppression: disable | |
force_language: c++ | |
force: enable | |
max_ctu_depth: 12 | |
#platform: | |
std: c++20 | |
output_file: ./CppCheckReport.txt | |
- name: Publish cppcheck report | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} # NOTE you must enable Read+write permissions in repository Settings -> Actions -> Workflow permissions -> toggle on Read and write permissions | |
publish_branch: static-analysis-reports | |
publish_dir: . # from | |
destination_dir: . # to - deploy to a subdirectory: https://github.com/peaceiris/actions-gh-pages#%EF%B8%8F-deploy-to-subdirectory-destination_dir | |
commit_message: cppcheck report - ${{ github.event.head_commit.message }} |