Skip to content

Commit eb2fcde

Browse files
committed
Only run tests under Valgrind for specific ci jobs
1 parent 5534f38 commit eb2fcde

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/actions/Build_and_Test_CppInterOp/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ runs:
5858
else
5959
cmake --build . --target check-cppinterop --parallel ${{ env.ncpus }}
6060
os="${{ matrix.os }}"
61-
if [[ "${os}" != "macos"* ]]; then
61+
if [[ "${os}" != "macos"* && "${matrix.Valgrind}" == "On" ]]; then
6262
CLANG_VERSION="${{ matrix.clang-runtime }}"
6363
if [[ "$CLANG_VERSION" == "20" && "${{ matrix.cling }}" == "Off" ]]; then
6464
SUPPRESSION_FILE="../etc/clang${CLANG_VERSION}-valgrind.supp"

.github/actions/Build_and_Test_cppyy/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ runs:
106106
107107
set -o pipefail
108108
os="${{ matrix.os }}"
109-
if [[ "${os}" != "macos"* ]]; then
109+
if [[ "${os}" != "macos"* && "${matrix.Valgrind}" == "On" ]]; then
110110
echo "Running valgrind on passing tests"
111111
CLANG_VERSION="${{ matrix.clang-runtime }}"
112112

.github/workflows/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
cppyy: Off
3232
llvm_enable_projects: "clang"
3333
llvm_targets_to_build: "host;NVPTX"
34+
Valgrind: On
3435
- name: ubu24-arm-gcc12-clang-repl-19-cppyy
3536
os: ubuntu-24.04-arm
3637
compiler: gcc-12
@@ -67,6 +68,7 @@ jobs:
6768
llvm_targets_to_build: "host;NVPTX"
6869
coverage: true
6970
oop-jit: On
71+
Valgrind: On
7072
- name: ubu24-x86-gcc12-clang-repl-20
7173
os: ubuntu-24.04
7274
compiler: gcc-12
@@ -311,3 +313,4 @@ jobs:
311313
uses: mxschmitt/action-tmate@v3
312314
# When debugging increase to a suitable value!
313315
timeout-minutes: 30
316+

0 commit comments

Comments
 (0)