Skip to content

Commit

Permalink
ci: Split valgrind debug and release jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
gavv committed Dec 19, 2024
1 parent daa0309 commit 8fdad1c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 43 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,10 @@ jobs:
- script: linux-checks/sanitizers
image: rocstreaming/env-ubuntu

- script: linux-checks/valgrind
- script: linux-checks/valgrind-debug
image: rocstreaming/env-ubuntu

- script: linux-checks/valgrind-release
image: rocstreaming/env-ubuntu

- script: linux-checks/check-formatting
Expand Down
13 changes: 13 additions & 0 deletions scripts/ci_checks/linux-checks/run-tests-in-valgrind.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -eux -o pipefail

find bin/x86_64-pc-linux-gnu -name 'roc-test-*' |\
while read tst
do
python3 scripts/scons_helpers/timeout-run.py 3000 \
valgrind \
--max-stackframe=10475520 \
--error-exitcode=1 --exit-on-first-error=yes \
${tst}
done
13 changes: 13 additions & 0 deletions scripts/ci_checks/linux-checks/valgrind-debug.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

set -euxo pipefail

scons -Q \
--enable-debug \
--enable-werror \
--enable-tests \
--enable-examples \
--compiler=gcc \
--build-3rdparty=all

"$( dirname "$0" )"/run-tests-in-valgrind.sh
12 changes: 12 additions & 0 deletions scripts/ci_checks/linux-checks/valgrind-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

set -euxo pipefail

scons -Q \
--enable-werror \
--enable-tests \
--enable-examples \
--compiler=gcc \
--build-3rdparty=all

"$( dirname "$0" )"/run-tests-in-valgrind.sh
42 changes: 0 additions & 42 deletions scripts/ci_checks/linux-checks/valgrind.sh

This file was deleted.

0 comments on commit 8fdad1c

Please sign in to comment.