-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (57 loc) · 2.01 KB
/
build.yml
File metadata and controls
67 lines (57 loc) · 2.01 KB
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
name: Build recovery Image
on:
push:
branches:
- master
release:
types: [published]
jobs:
build:
runs-on: ubuntu-16.04
env:
VENDOR: volla
DEVICE: yggdrasil
ANDROID_ROOT: /home/runner/work/orangefox/
steps:
- name: Checkout
uses: actions/checkout@master
- name: Initialization environment
run: |
sudo apt-get update
sudo apt-get install -y \
openjdk-8-jdk android-tools-adb bc \
bison build-essential curl flex g++-multilib \
gcc-multilib gnupg gperf imagemagick lib32ncurses5-dev \
lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool \
libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev \
libxml2 libxml2-utils lzop pngcrush rsync schedtool \
squashfs-tools xsltproc yasm zip zlib1g-dev git
sudo docker rmi `docker images -q`
sudo rm -rf \
/usr/share/dotnet \
/etc/mysql \
/etc/php
mkdir -p ~/bin
wget 'https://storage.googleapis.com/git-repo-downloads/repo' -P ~/bin
chmod +x ~/bin/repo
git config --global user.name "OrangeFox Volla Phone CI"
git config --global user.email "thisemaildoesnotexist@exist.com"
- name: Downloading source code
run: |
source of.env
mkdir -p $ANDROID_ROOT
cd $ANDROID_ROOT
repo init -u https://gitlab.com/OrangeFox/Manifest.git -b fox_9.0 --depth=1
repo sync -j8 -c
git clone https://github.com/luka177/android_kernel_volla_mt6763 -b lineage-16.0 kernel/volla/mt6763
git clone https://github.com/luka177/android_device_volla_yggdrasil $ANDROID_ROOT/device/volla/yggdrasil
- name: Build recovery
run: |
chmod +x build.sh
bash -x build.sh
shell: bash
- name : Upload recovery image
uses: actions/upload-artifact@master
with:
name: Recovery image
path: /home/runner/work/orangefox/out/target/product/yggdrasil/OrangeFox-Unofficial-yggdrasil.zip