-
Notifications
You must be signed in to change notification settings - Fork 28
/
.cirrus.yml
78 lines (69 loc) · 2.31 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
env:
MANIFEST: https://github.com/PixelExperience/manifest.git -b eleven-plus
DEVICE: miatoll
OEM: xiaomi
DT_LINK: https://github.com/PixelExperience-Devices/device_xiaomi_miatoll.git
DT_PATH: device/$OEM/$DEVICE
VT_LINK: https://gitlab.pixelexperience.org/android/vendor-blobs/vendor_xiaomi_miatoll.git
VT_PATH: vendor/$OEM/$DEVICE
KT_LINK: https://github.com/ArrowOS-Devices/android_kernel_xiaomi_sm6250.git
PLATFORM: sm6250
KT_PATH: kernel/$OEM/$PLATFORM
TARGET: bacon
EXTRA_CMD: export SKIP_ABI_CHECKS=true
LUNCH_COMBO: aosp_${DEVICE}-userdebug
OUTPUT: PixelExperience*.zip
task:
name: "Setting Up, Syncing, Building and Uploading..."
timeout_in: 240m
container:
image: ghcr.io/sushrut1101/docker:arch
cpu: 4
memory: 16G
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 -j4 --force-sync --no-tags --no-clone-bundle
- git clone $DT_LINK $DT_PATH
- git clone $VT_LINK $VT_PATH
- git clone $KT_LINK $KT_PATH
- echo "============================"
- echo "Syncing Complete!"
- echo "============================"
Build_script:
- echo "============================"
- echo "Starting the Build..."
- echo "============================"
- cd ~/work
- $EXTRA_CMD
- export USE_CCACHE=1
- export CCACHE_EXEC=/usr/bin/ccache
- ccache -M 50G
- . build/envsetup.sh
- lunch "$LUNCH_COMBO"
- mka -j31 $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 "============================"