This repository has been archived by the owner on Jun 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 321
/
Copy path.cirrus.yml
113 lines (101 loc) · 3.93 KB
/
.cirrus.yml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
env:
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-10.0-deprecated
DT_LINK: https://github.com/Redmi-MT6765/recovery_dandelion.git -b fox_10.0
DEVICE: dandelion
OEM: xiaomi
DT_PATH: device/$OEM/$DEVICE
TARGET: recoveryimage
EXTRA_CMD: git clone https://github.com/OrangeFoxRecovery/Avatar.git misc
OUTPUT: OrangeFox*.zip
task:
name: "Setting Up, Syncing, Building and Uploading..."
timeout_in: 240m
container:
image: ubuntu:20.04
cpu: 8
memory: 32G
Build-Env-Setup_script:
- export DEBIAN_FRONTEND=noninteractive
- apt update
- apt install sudo
- df -h
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends tzdata
- ln -sf /usr/share/zoneinfo/Asia/Kolkata /etc/localtime
- apt-get install -y tzdata
- dpkg-reconfigure --frontend noninteractive tzdata
- sudo apt update -y && sudo apt install git aria2 curl wget rsync zip unzip lzma cpio ccache neofetch -y
- sudo apt install python2 -y
- sudo ln -sf /usr/bin/python2 /usr/bin/python
- git config --global user.name "Sushrut1101"
- git config --global user.email "[email protected]"
- git clone https://github.com/akhilnarang/scripts.git ~/scripts
- cd ~/scripts
- sudo bash setup/android_build_env.sh
- cd ~
Neofetch_script:
- neofetch
Storage-Checker_script:
- df -h
- lsblk
- ls -l -a -h
Sync_script:
- echo "============================"
- echo "Syncing The Sources..."
- echo "============================"
- mkdir -p ~/work
- cd ~/work
- repo init --depth=1 -u $MANIFEST
- repo sync -j16 --force-sync --no-tags --no-clone-bundle
- git clone $DT_LINK $DT_PATH
- echo "============================"
- echo "Syncing Complete!"
- echo "============================"
fox-10-setup_script:
- cd ~/work
- cd build
- wget https://gitlab.com/OrangeFox/sync/-/raw/master/patches/patch-manifest-fox_10.0.diff
- patch -p1 < patch-manifest-fox_10.0.diff
- rm -rf patch-manifest-fox_10.0.diff
- cd -
- rm -rf bootable/recovery vendor/recovery
- git clone https://gitlab.com/OrangeFox/bootable/Recovery.git -b fox_10.0 bootable/recovery
- git clone https://gitlab.com/OrangeFox/vendor/recovery.git -b fox_10.0 vendor/recovery
Clone-OrangeFox-Theme_script:
- git clone https://gitlab.com/OrangeFox/misc/Theme.git ~/work/bootable/recovery/gui/theme
Clone-QCOM-Stuff_script:
- cd ~/work
- git clone https://github.com/TeamWin/android_device_qcom_twrp-common.git -b android-10 device/qcom/twrp-common
- git clone https://github.com/TeamWin/android_device_qcom_common.git -b android-10 device/qcom/common
Build_script:
- echo "============================"
- echo "Starting the Build..."
- echo "============================"
- cd ~/work
- export ALLOW_MISSING_DEPENDENCIES=true
- export LC_ALL="C"
- export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
- $EXTRA_CMD
- export USE_CCACHE=1
- export CCACHE_EXEC=/usr/bin/ccache
- ccache -M 50G
- . build/envsetup.sh
- . $DT_PATH/vendorsetup.sh
- lunch omni_$DEVICE-eng
- mka -j16 $TARGET
Upload_script:
- echo "============================"
- echo "Uploading the Build..."
- echo "============================"
- cd ~/work
- cd out/target/product/"$DEVICE"
- ls -lh
- pwd
- chmod 777 *
- curl --upload-file $(echo $OUTPUT) https://transfer.sh | tee link.txt && echo " "
- echo " "
- echo "============================"
- echo "Build Uploaded!"
- echo "Please see the link Below- "
- echo "----------------------------"
- cat link.txt && echo " "
- echo "============================"