-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
41 lines (38 loc) · 1.14 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
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
- ./build.sh
artifacts:
paths:
- out/*
flashable:
stage: deploy
script:
- apt update
- apt install -y img2simg jq sudo wget xz-utils
- 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 img2simg jq sudo wget xz-utils
- 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
artifacts:
paths:
- out/boot.img
- out/system.img