8
8
# we run all builds in parallel each from their own folder.
9
9
export NUM_JOBS=5
10
10
declare -a JOBS=(
11
- " target=editor use_closure_compiler=yes"
12
11
" target=template_debug"
13
12
" target=template_release"
14
13
" target=template_debug dlink_enabled=yes"
15
14
" target=template_release dlink_enabled=yes"
16
15
)
16
+ declare -a JOBS_NOTHREADS=(
17
+ " target=template_debug threads=no"
18
+ " target=template_release threads=no"
19
+ " target=template_debug dlink_enabled=yes threads=no"
20
+ " target=template_release dlink_enabled=yes threads=no"
21
+ )
17
22
18
23
export SCONS=" scons -j$( expr ${NUM_CORES} / ${NUM_JOBS} ) verbose=yes warnings=no progress=no"
19
24
export OPTIONS=" production=yes"
@@ -32,24 +37,44 @@ tar xf /root/godot.tar.gz --strip-components=1
32
37
if [ " ${CLASSICAL} " == " 1" ]; then
33
38
echo " Starting classical build for Web..."
34
39
35
- for i in {0..4 }; do
40
+ for i in {0..3 }; do
36
41
cp -r /root/godot /root/godot$i
37
42
cd /root/godot$i
38
43
echo " $SCONS platform=web ${OPTIONS} ${JOBS[$i]} "
39
44
$SCONS platform=web ${OPTIONS} ${JOBS[$i]} &
40
45
pids[$i ]=$!
41
46
done
42
47
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
+
56
+ cd /root/godot
57
+ echo " $SCONS platform=web ${OPTIONS} target=editor use_closure_compiler=yes"
58
+ $SCONS platform=web ${OPTIONS} target=editor use_closure_compiler=yes &
59
+ pid_editor=$!
60
+
43
61
for pid in ${pids[*]} ; do
44
62
wait $pid
45
63
done
46
64
65
+ for pid in ${pids_nothreads[*]} ; do
66
+ wait $pid
67
+ done
68
+
69
+ wait $pid_editor
70
+
47
71
mkdir -p /root/out/tools
48
- cp -rvp /root/godot0 /bin/* .editor* .zip /root/out/tools
72
+ cp -rvp /root/godot /bin/* .editor* .zip /root/out/tools
49
73
50
74
mkdir -p /root/out/templates
51
- for i in {1..4 }; do
75
+ for i in {0..3 }; do
52
76
cp -rvp /root/godot$i /bin/* .zip /root/out/templates
77
+ cp -rvp /root/godot-nothreads$i /bin/* .zip /root/out/templates
53
78
done
54
79
fi
55
80
0 commit comments