Skip to content

Commit e321eca

Browse files
committed
Web: Tweak build concurrency, doesn't seem to work with all in parallel
1 parent ef6c745 commit e321eca

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

build-web/build.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@ if [ "${CLASSICAL}" == "1" ]; then
4545
pids[$i]=$!
4646
done
4747

48-
for i in {0..3}; do
49-
cp -r /root/godot /root/godot-nothreads$i
50-
cd /root/godot-nothreads$i
51-
echo "$SCONS platform=web ${OPTIONS} ${JOBS_NOTHREADS[$i]}"
52-
$SCONS platform=web ${OPTIONS} ${JOBS_NOTHREADS[$i]} &
53-
pids_nothreads[$i]=$!
54-
done
55-
5648
cd /root/godot
5749
echo "$SCONS platform=web ${OPTIONS} target=editor use_closure_compiler=yes"
5850
$SCONS platform=web ${OPTIONS} target=editor use_closure_compiler=yes &
@@ -61,13 +53,20 @@ if [ "${CLASSICAL}" == "1" ]; then
6153
for pid in ${pids[*]}; do
6254
wait $pid
6355
done
56+
wait $pid_editor
57+
58+
for i in {0..3}; do
59+
cp -r /root/godot /root/godot-nothreads$i
60+
cd /root/godot-nothreads$i
61+
echo "$SCONS platform=web ${OPTIONS} ${JOBS_NOTHREADS[$i]}"
62+
$SCONS platform=web ${OPTIONS} ${JOBS_NOTHREADS[$i]} &
63+
pids_nothreads[$i]=$!
64+
done
6465

6566
for pid in ${pids_nothreads[*]}; do
6667
wait $pid
6768
done
6869

69-
wait $pid_editor
70-
7170
mkdir -p /root/out/tools
7271
cp -rvp /root/godot/bin/*.editor*.zip /root/out/tools
7372

0 commit comments

Comments
 (0)