File tree Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Expand file tree Collapse file tree 1 file changed +25
-1
lines changed Original file line number Diff line number Diff line change 74
74
fi
75
75
76
76
mkdir build && cd build
77
- cmake .. -DBUILD_DEPENDENCIES=OFF
77
+ cmake .. -DBUILD_DEPENDENCIES=OFF -DCMAKE_BUILD_TYPE=RelWithDebInfo
78
78
make -j$num_procs
79
79
80
80
- name : Change token rotation to 30s
@@ -266,3 +266,27 @@ jobs:
266
266
267
267
exit $failed
268
268
shell : bash
269
+ - name : Run Valgrind on ${{ matrix.sample-executable.name }} (Linux)
270
+ if : runner.os == 'Linux'
271
+ working-directory : ./build
272
+ run : |
273
+ set -o pipefail
274
+ set +e
275
+
276
+ echo "Running Valgrind on ${{ matrix.sample-executable.name }}"
277
+ mkdir -p valgrind_logs
278
+ valgrind \
279
+ --leak-check=full \
280
+ --show-leak-kinds=all \
281
+ --track-origins=yes \
282
+ --error-exitcode=1 \
283
+ --log-file=valgrind_logs/valgrind_${{ matrix.sample-executable.name }}.log \
284
+ ./${{ matrix.sample-executable.name }} "$KVS_STREAM_NAME" ${{ matrix.sample-executable.args }}
285
+ valgrind_exit_code=$?
286
+
287
+ echo "========== Valgrind Output =========="
288
+ cat valgrind_logs/${{ matrix.sample-executable.name }}.log
289
+ echo "====================================="
290
+
291
+ exit "$valgrind_exit_code"
292
+ shell : bash
You can’t perform that action at this time.
0 commit comments