ci: Use CodeChecker as static analysis tool #9
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: CodeChecker | |
on: [push, pull_request] | |
jobs: | |
codechecker_static_analyzer: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout code including full history and submodules | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
fetch-depth: 0 | |
- name: Install CodeChecker | |
run: | | |
sudo apt-get update | |
sudo apt-get install clang-tools-18 cmake cppcheck libcunit1-dev ninja-build unzip wget | |
pip3 install codechecker | |
- name: Run CodeChecker | |
run: | | |
bash -x tools/ci/run_ci.sh --run-build --run-code-checker --code-checker diff | |
env: | |
CC: clang-18 | |
- name: Upload CodeChecker reports | |
uses: actions/upload-artifact@v4 | |
with: | |
name: CodeChecker Reports | |
path: build-wakaama/codechecker_report |