[filter] declarative paradigm #1947
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: 'CppCheck' | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: '0 0 * * */5' | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@f086349bfa2bd1361f7909c78558e816508cdc10 # v2.8.0 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 | |
- name: Install | |
run: | | |
( cd /tmp | |
git clone --depth 1 'https://gitlab.com/libeigen/eigen' | |
cmake -S 'eigen' -B 'eigen/build' | |
cmake --build 'eigen/build' --parallel 4 | |
sudo cmake --install 'eigen/build' ) | |
( cd /tmp | |
git clone https://github.com/danmar/cppcheck.git | |
( cd cppcheck | |
git checkout fa561e9c242e7ceeb16408ef55e8bcea04fcf46f ) | |
cmake -S 'cppcheck' -B 'cppcheck/build' | |
cmake --build 'cppcheck/build' --parallel 4 | |
sudo cmake --install 'cppcheck/build' ) | |
- name: Verify | |
run: | | |
cppcheck \ | |
--enable=all \ | |
--error-exitcode=1 \ | |
--suppress=missingIncludeSystem \ | |
--suppress=unusedFunction:include/fcarouge/internal/format.hpp \ | |
--verbose \ | |
-I benchmark/include \ | |
-I include \ | |
-I linalg/eigen \ | |
-I linalg/lazy \ | |
-I linalg/naive \ | |
. |