Skip to content

Commit 7876e10

Browse files
authored
valgrind.yml: actually fail the workflow when an error is detected (danmar#4716)
1 parent c99c444 commit 7876e10

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/valgrind.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ jobs:
4040
4141
- name: Run valgrind
4242
run: |
43-
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner TestGarbage TestOther TestSimplifyTemplate 9>memcheck.log
43+
ec=0
44+
valgrind --error-limit=yes --leak-check=full --num-callers=50 --show-reachable=yes --track-origins=yes --suppressions=valgrind/testrunner.supp --gen-suppressions=all --log-fd=9 --error-exitcode=42 ./testrunner TestGarbage TestOther TestSimplifyTemplate 9>memcheck.log || ec=1
4445
cat memcheck.log
46+
exit $ec
4547
env:
4648
DEBUGINFOD_URLS: https://debuginfod.ubuntu.com
4749

4850
- uses: actions/upload-artifact@v3
51+
if: success() || failure()
4952
with:
5053
name: Logs
5154
path: ./*.log

0 commit comments

Comments
 (0)