-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.sh
60 lines (35 loc) · 1.3 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/bin/bash
export KERNELNAME=Moonlight
export LOCALVERSION=Elaina-v4.1
export KBUILD_BUILD_USER=Sxzz
export KBUILD_BUILD_HOST=DroneCI
export TOOLCHAIN=clang
export DEVICES=whyred,tulip,lavender,a26x
export CI_ID=-1001463706805
export GROUP_ID=-1001401101008
source helper
gen_toolchain
send_msg "⏳ Start building ${KERNELNAME} ${LOCALVERSION} | DEVICES: whyred - tulip - lavender - wayne - jasmine"
send_pesan "⏳ Start building ${KERNELNAME} ${LOCALVERSION} | DEVICES: whyred - tulip - lavender - wayne - jasmine"
START=$(date +"%s")
for i in ${DEVICES//,/ }
do
build ${i} -oldcam
build ${i} -newcam
done
send_msg "⏳ Start building Overclock version | DEVICES: whyred - tulip"
send_pesan "⏳ Start building Overclock version | DEVICES: whyred - tulip"
git apply oc.patch
git apply em.patch
for i in ${DEVICES//,/ }
do
if [ $i == "whyred" ] || [ $i == "tulip" ]
then
build ${i} -oldcam -overclock
build ${i} -newcam -overclock
fi
done
END=$(date +"%s")
DIFF=$(( END - START ))
send_msg "✅ Build completed in $((DIFF / 60))m $((DIFF % 60))s | Linux version : $(make kernelversion) | Last commit: $(git log --pretty=format:'%s' -5)"
send_pesan "✅ Build completed in $((DIFF / 60))m $((DIFF % 60))s | Linux version : $(make kernelversion) | Last commit: $(git log --pretty=format:'%s' -5)"