Add pipeline running tests under Valgrind to GitHub Action

This commit is contained in:
Martin Hořeňovský 2022-04-23 23:41:32 +02:00
parent ea9029c478
commit c2bc321607
No known key found for this signature in database
GPG Key ID: DE48307B8B0D381A

View File

@ -59,6 +59,15 @@ jobs:
other_pkgs: clang-10 other_pkgs: clang-10
cmake_configurations: -DCATCH_ENABLE_CONFIGURE_TESTS=ON cmake_configurations: -DCATCH_ENABLE_CONFIGURE_TESTS=ON
# Valgrind test Clang-10
- cxx: clang++-10
build_description: Valgrind tests
build_type: Debug
std: 14
other_pkgs: clang-10 valgrind
cmake_configurations: -DMEMORYCHECK_COMMAND=`which valgrind` -DMEMORYCHECK_COMMAND_OPTIONS="-q --track-origins=yes --leak-check=full --num-callers=50 --show-leak-kinds=definite --error-exitcode=1"
other_ctest_args: -T memcheck -LE uses-python
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -91,4 +100,4 @@ jobs:
CTEST_OUTPUT_ON_FAILURE: 1 CTEST_OUTPUT_ON_FAILURE: 1
working-directory: ${{runner.workspace}}/build working-directory: ${{runner.workspace}}/build
# Hardcode 2 cores we know are there # Hardcode 2 cores we know are there
run: ctest -C ${{matrix.build_type}} -j 2 run: ctest -C ${{matrix.build_type}} -j 2 ${{matrix.other_ctest_args}}