ci: enable valgrind for build #2992
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: Fedora | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
container: fedora | |
strategy: | |
matrix: | |
compiler: [clang] | |
os: [ubuntu-latest] | |
env: | |
CC: ${{ matrix.compiler }} | |
CMAKE_GENERATOR: Ninja | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install devel tools | |
run: | | |
yum -y install gcc clang cmake valgrind openssl-devel zlib-devel ninja-build | |
- name: make info | |
run: | | |
echo "OS: ${{ matrix.os }}" | |
echo "--- ${{ matrix.compiler }} DEBUG VERSION ---" | |
${{ matrix.compiler }} - --version | |
cmake --version | |
- name: make | |
run: | | |
cmake -B build -DCMAKE_C_FLAGS="-Werror" && cmake --build build -j 16 -t retest | |
- name: retest | |
run: | | |
valgrind --leak-check=full --show-reachable=yes --error-exitcode=42 ./build/test/retest -r -v |