Skip to content

Commit

Permalink
only use valgrind with gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Sep 7, 2024
1 parent 92af0ba commit af6adf0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
cmake -B build -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_C_FLAGS="-Werror"
cmake --build build -t retest
- name: retest with valgrind
if: ${{ runner.os == 'Linux' }}
run: |
valgrind --leak-check=full --show-reachable=yes --error-exitcode=42 ./build/test/retest -a -v
- name: retest
if: ${{ runner.os == 'macOS' }}
if: ${{ matrix.compiler == 'clang' }}
run: |
./build/test/retest -a -v
- name: retest with valgrind
if: ${{ matrix.compiler == 'gcc' }}
run: |
valgrind --leak-check=full --show-reachable=yes --error-exitcode=42 ./build/test/retest -a -v

0 comments on commit af6adf0

Please sign in to comment.