File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -187,14 +187,18 @@ function build {
187
187
# Ensure we have yarn set up.
188
188
corepack enable
189
189
190
- projects=(
190
+ # These projects are dependant on each other and must be built linearly
191
+ dependent_projects=(
191
192
noir
192
193
barretenberg
193
194
avm-transpiler
194
195
noir-projects
195
196
# Relies on noir-projects for verifier solidity generation.
196
197
l1-contracts
197
198
yarn-project
199
+ )
200
+ # These projects rely on the output of the dependant projects and can be built in parallel
201
+ non_dependent_projects=(
198
202
boxes
199
203
playground
200
204
docs
@@ -203,9 +207,13 @@ function build {
203
207
aztec-up
204
208
)
205
209
206
- for project in " ${projects[@]} " ; do
210
+ echo_header " Building dependent projects in serial"
211
+ for project in " ${dependent_projects[@]} " ; do
207
212
$project /bootstrap.sh ${1:- }
208
213
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[@]}
209
217
}
210
218
211
219
function bench {
You can’t perform that action at this time.
0 commit comments