Skip to content

Commit b17e18d

Browse files
authored
chore(ci): run non dependent bootstrap build steps in parallel (#13454)
## Overview Over time some steps have been added to bootstrap build that do not depend on what came before We should run these steps in parallel
1 parent 9ed10d3 commit b17e18d

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

bootstrap.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,14 +187,18 @@ function build {
187187
# Ensure we have yarn set up.
188188
corepack enable
189189

190-
projects=(
190+
# These projects are dependant on each other and must be built linearly
191+
dependent_projects=(
191192
noir
192193
barretenberg
193194
avm-transpiler
194195
noir-projects
195196
# Relies on noir-projects for verifier solidity generation.
196197
l1-contracts
197198
yarn-project
199+
)
200+
# These projects rely on the output of the dependant projects and can be built in parallel
201+
non_dependent_projects=(
198202
boxes
199203
playground
200204
docs
@@ -203,9 +207,13 @@ function build {
203207
aztec-up
204208
)
205209

206-
for project in "${projects[@]}"; do
210+
echo_header "Building dependent projects in serial"
211+
for project in "${dependent_projects[@]}"; do
207212
$project/bootstrap.sh ${1:-}
208213
done
214+
215+
echo_header "build non-dependent projects in parallel"
216+
parallel --line-buffer --tag --halt now,fail=1 '{}/bootstrap.sh ${1:-}' ::: ${non_dependent_projects[@]}
209217
}
210218

211219
function bench {

0 commit comments

Comments
 (0)