Add CI for static analysis, building, and packaging #1
Workflow file for this run
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: Static analysis | |
on: [pull_request] | |
jobs: | |
static_analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: 'recursive' | |
- name: Run static analysis | |
uses: esp-cpp/StaticAnalysis@master | |
with: | |
# Do not build the project and do not use cmake to generate compile_commands.json | |
use_cmake: false | |
# Use the 5.2 release version since it's what we build with | |
esp_idf_version: release/v5.2 | |
# (Optional) cppcheck args | |
cppcheck_args: -i$GITHUB_WORKSPACE/components/espp -i$GITHUB_WORKSPACE/components/esp32-camera -i$GITHUB_WORKSPACE/components/esp-protocols --force --enable=all --inline-suppr --inconclusive --platform=mips32 --std=c++17 --suppressions-list=$GITHUB_WORKSPACE/suppressions.txt |