Skip to content

Commit b4ac1a1

Browse files
ci: Run valgrind/memcheck tasks with 2 CPUs
... and increase the memory only for UBSan, ASan, LSan builds. Those are the ones who need more memory.
1 parent e70acab commit b4ac1a1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.cirrus.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -263,8 +263,6 @@ task:
263263
# Sanitizers
264264
task:
265265
<< : *LINUX_CONTAINER
266-
container:
267-
memory: 2G
268266
env:
269267
ECDH: yes
270268
RECOVERY: yes
@@ -273,11 +271,15 @@ task:
273271
CTIMETEST: no
274272
matrix:
275273
- name: "Valgrind (memcheck)"
274+
container:
275+
cpu: 2
276276
env:
277277
# The `--error-exitcode` is required to make the test fail if valgrind found errors, otherwise it'll return 0 (https://www.valgrind.org/docs/manual/manual-core.html)
278278
WRAPPER_CMD: "valgrind --error-exitcode=42"
279279
SECP256K1_TEST_ITERS: 2
280280
- name: "UBSan, ASan, LSan"
281+
container:
282+
memory: 2G
281283
env:
282284
CFLAGS: "-fsanitize=undefined,address -g"
283285
UBSAN_OPTIONS: "print_stacktrace=1:halt_on_error=1"

0 commit comments

Comments
 (0)