Create cppcheck.yml

This commit is contained in:
sakumisu 2024-09-27 22:16:32 +08:00 committed by GitHub
parent 2b6eebcbb2
commit bb79408275
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

17
.github/workflows/cppcheck.yml vendored Normal file
View File

@ -0,0 +1,17 @@
name: Cppcheck action
on:
push:
pull_request:
jobs:
build:
name: cppcheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: cppcheck
shell: bash
run: |
sudo apt install cppcheck
cppcheck --enable=warning,portability,performance --language=c --platform=unix32 --std=c99 --force . -i third_party/ -i class/template -i port/template/