new(build): bump libs, reintroduce static build #2113
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: StaticAnalysis | |
on: | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
staticanalysis: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout ⤵️ | |
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0 | |
with: | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Install build dependencies ⛓️ | |
run: | | |
sudo apt update -y | |
sudo apt install build-essential git cppcheck cmake -y | |
- name: Build and run cppcheck 🏎️ | |
run: | | |
cmake -B build -S . \ | |
-DCMAKE_BUILD_TYPE="release" \ | |
-DUSE_BUNDLED_DEPS=On -DUSE_DYNAMIC_LIBELF=Off -DBUILD_WARNINGS_AS_ERRORS=ON -DCREATE_TEST_TARGETS=Off -DBUILD_BPF=Off -DBUILD_DRIVER=Off | |
cmake --build build -j4 --target cppcheck | |
cmake --build build -j4 --target cppcheck_htmlreport | |
- name: Upload reports ⬆️ | |
uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3 | |
with: | |
name: static-analysis-reports | |
path: ./build/static-analysis-reports |