-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
46 lines (43 loc) · 1.66 KB
/
.gitlab-ci.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
image: ubuntu:20.04
build:
stage: build
script:
- apt update
- apt install android-tools-mkbootimg bc bison build-essential ca-certificates cpio curl flex git kmod libssl-dev libtinfo5 python2 sudo unzip wget xz-utils -y --no-install-recommends
- ln -sf python2.7 /usr/bin/python
- wget https://raw.githubusercontent.com/LineageOS/android_system_core/lineage-17.1/mkbootimg/mkbootimg.py -O /usr/bin/mkbootimg
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- ./build/build.sh
artifacts:
paths:
- out/*
flashable:
stage: deploy
script:
- apt update
- apt install -y git img2simg jq sudo wget xz-utils
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/fetch-and-prepare-latest-ota.sh "16.04/arm64/android9/devel" "$DEVICE" ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
artifacts:
paths:
- out/boot.img
- out/system.img
when: manual
devel-flashable:
stage: deploy
script:
- apt update
- apt install -y git img2simg jq sudo wget xz-utils
- git clone https://gitlab.com/ubports/community-ports/halium-generic-adaptation-build-tools -b halium-11 build
- DEVICE="$(source deviceinfo && echo $deviceinfo_codename)"
- ./build/prepare-fake-ota.sh out/device_$DEVICE.tar.xz ota
- mkdir -p out
- ./build/system-image-from-ota.sh ota/ubuntu_command out
- mv out/rootfs.img out/ubuntu.img
artifacts:
paths:
- out/boot.img
- out/ubuntu.img