Skip to content

Commit 7cf7ea8

Browse files
committed
CI: use -O1 optimized builds for sanitizer and valgrind runs.
ChatGPT suggested this for sanitizer runs, but valgrind gains a little too. Sanitizer before: 74.1-98.9(84.5+/-7.3) minutes Sanitizer after: 11.6-15.2(13.3+/-1.2) minutes Valgrind before: 43.3-54.1(46.8+/-3.8) minutes Valgrind after: 40.9-49.4(43.4+/-2.5) minutes Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 29dc8a9 commit 7cf7ea8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,11 @@ jobs:
118118
VALGRIND: 1
119119
COMPILER: gcc
120120
DEBUG_BUILD: --enable-debugbuild
121+
- CFG: compile-gcc-O1
122+
VALGRIND: 1
123+
COMPILER: gcc
124+
COPTFLAGS_VAR: COPTFLAGS="-O1"
125+
DEBUG_BUILD: --enable-debugbuild
121126
- CFG: compile-gcc-O3
122127
VALGRIND: 1
123128
COMPILER: gcc
@@ -133,6 +138,7 @@ jobs:
133138
ASAN: 1
134139
UBSAN: 1
135140
VALGRIND: 0
141+
COPTFLAGS_VAR: COPTFLAGS="-O1"
136142
DEBUG_BUILD:
137143
steps:
138144
- name: Checkout
@@ -240,7 +246,7 @@ jobs:
240246
fail-fast: true
241247
matrix:
242248
include:
243-
- CFG: compile-gcc
249+
- CFG: compile-gcc-O1
244250
VALGRIND: 1
245251
- CFG: compile-clang-sanitizers
246252
VALGRIND: 0
@@ -521,7 +527,7 @@ jobs:
521527
strategy:
522528
fail-fast: false
523529
matrix:
524-
CFG: [compile-gcc]
530+
CFG: [compile-gcc-O1]
525531
GROUP: [1,2,3,4,5,6,7,8,9,10]
526532
steps:
527533
- name: Checkout

0 commit comments

Comments
 (0)