-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (54 loc) · 2.02 KB
/
grouper.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
name: TWRP CI (grouper)
on:
workflow_dispatch:
jobs:
build:
name: TWRP Build CI
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04]
env:
OEM: asus
DEVICE: grouper
steps:
- uses: actions/checkout@v2
- name: Installing JDK 7 + Build Dependencies
run: |
sudo apt-get update
sudo apt-get install zip gcc-multilib g++-multilib \
libc6-dev-i386 lib32ncurses5-dev lib32z1-dev \
libgl1-mesa-dev libxml2-utils xsltproc schedtool axel
mkdir ~/.jdk_7
cd ~/.jdk_7
axel -q -n $(nproc --all) https://download.java.net/openjdk/jdk7u75/ri/openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
tar -xzf openjdk-7u75-b13-linux-x64-18_dec_2014.tar.gz
sudo ln -f -s /usr/bin/python2.7 /usr/bin/python
- name: Syncing TWRP sources
run: |
mkdir ~/TWRP
cd ~/TWRP
mkdir ~/.bin
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
python3 ~/.bin/repo init --depth=1 -u https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git -b twrp-5.1
git clone --branch android-5.0 --single-branch https://github.com/TeamWin/android_device_asus_grouper.git ~/TWRP/device/asus/grouper
python3 ~/.bin/repo sync -c --force-sync --optimized-fetch --no-tags --no-clone-bundle --prune -j$(nproc --all)
- name: Building TWRP
run: |
OLDPATH=$PATH
OLDJAVAHOME=$JAVA_HOME
export PATH="$HOME/.jdk_7/java-se-7u75-ri/bin:$PATH"
export JAVA_HOME="$HOME/.jdk_7/java-se-7u75-ri"
cd ~/TWRP
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export LC_ALL=C
lunch aosp_grouper-userdebug
make -j$(nproc --all) recoveryimage
export PATH=$OLDPATH
export JAVA_HOME=$OLDJAVAHOME
- name: Uploading TWRP builds
uses: actions/upload-artifact@v2
with:
name: twrp
path: /home/runner/TWRP/out/target/product/grouper/recovery.*