ci: enable valgrind for build #2236
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: Alpine (musl) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: alpine | |
env: | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install devel tools | |
run: | | |
apk add musl-dev git cmake gcc g++ valgrind binutils openssl-dev linux-headers zlib-dev ninja | |
- name: make | |
run: | | |
cmake -B build -DCMAKE_C_FLAGS="-Werror" | |
cmake --build build -j -t retest | |
valgrind --leak-check=full --show-reachable=yes --error-exitcode=42 ./build/test/retest -r -v |