New Brainflow Board -- NeuroPawn Knight Board #2179
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
name: CppCheck | |
on: [push, pull_request] | |
jobs: | |
cppcheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install CppCheck | |
run: | | |
sudo -H apt-get update -y | |
sudo -H apt-get install cppcheck | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
- name: Run Cppcheck | |
run: cppcheck --std=c++11 -ithird_party/spdlog -ithird_party/libsvm -ithird_party/SimpleBLE -ithird_party/fmt -ithird_party/SimpleDBus -ithird_party/SimpleBluez -ithird_party/kissfft -isrc/utils/os_serial_ioctl.cpp --error-exitcode=1 --xml --xml-version=2 --force src cpp_package third_party 2>cppcheck_res.xml | |
- name: Generate Report | |
if: ${{ failure() }} | |
run: cppcheck-htmlreport --title=BrainFlow --file=cppcheck_res.xml --report-dir=report | |
- name: Upload Report | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v1 | |
with: | |
name: report | |
path: report |