File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -266,3 +266,25 @@ 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
+ --error-exitcode=1 \
281
+ --log-file=valgrind_logs/valgrind_${{ matrix.sample-executable.name }}.log \
282
+ ./${{ matrix.sample-executable.name }} "$KVS_STREAM_NAME" ${{ matrix.sample-executable.args }}
283
+ valgrind_exit_code=$?
284
+
285
+ echo "========== Valgrind Output =========="
286
+ cat valgrind_logs/${{ matrix.sample-executable.name }}.log
287
+ echo "====================================="
288
+
289
+ exit "$valgrind_exit_code"
290
+ shell : bash
You can’t perform that action at this time.
0 commit comments