gd-tools/cpr-1.10.5/.github/workflows/cppcheck.yml

27 lines
634 B
YAML
Raw Normal View History

2024-02-07 20:32:30 +00:00
name: "Test cppcheck"
on: [push, pull_request]
jobs:
cppcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Update package list
run: sudo apt update
- name: Install cppcheck
run: sudo apt install cppcheck
- name: "[Release g++] Build"
env:
CPR_ENABLE_CPPCHECK: ON
uses: ashutoshvarma/action-cmake-build@master
with:
build-dir: ${{github.workspace}}/build
source-dir: ${{github.workspace}}
cc: gcc
cxx: g++
build-type: Release
run-test: false