Merge pull request #1110 from libcpr/feature/better-curl-error-code-h… #1020
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: "Test cppcheck" | |
on: [push, workflow_dispatch, pull_request] # Trigger for every push as well as for every pull request. Yes, this will run stuff twice in case we create a PR from inside this repo. I'm open for better solutions, where I do not have to specify each brach individually for the 'push' trigger. | |
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 |