forked from 261099505/cc9e
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (62 loc) · 2.61 KB
/
build_ErfanGSIs.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
78
79
name: miuicc9e_21.2.2_10
on:
push:
branches: [ "master" ]
env:
ROM_URL: https://master.dl.sourceforge.net/project/xiaomi-eu-multilang-miui-roms/xiaomi.eu/MIUI-STABLE-RELEASES/MIUIv11/xiaomi.eu_multi_MICC9e_V11.0.6.0.PFMCNXM_v11-9.zip?viasf=1
ROM_NAME: MIUI
BUILD_AB: true
BUILD_AONLY: false
ROM_AONLY: VIOLET_20.11.17_aonly-Q.7z
ROM_AB: miuicc9e_21.2.2_10.7z
jobs:
build:
runs-on: ubuntu-latest
#if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@master
- name: Clean Up
run: |
docker rmi `docker images -q`
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* #php*
sudo -E apt-get update
sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean
- name: Initialization environment
run: |
sudo -E apt-get -qq update
sudo -E apt-get -qq install git openjdk-8-jdk p7zip gzip
- name: Clone ErfanGSI Source Code
run: git clone --recurse-submodules https://github.com/lkx-0686/ErfanGSIs.git
- name: Setting up ErfanGSI requirements
run: |
sudo chmod -R 777 ErfanGSIs
cd ErfanGSIs
sudo bash setup.sh
- name: Download Stock Rom & Generate Aonly GSI
if: env.BUILD_AONLY == 'true'
run: sudo ./ErfanGSIs/url2GSI.sh -a $ROM_URL $ROM_NAME
- name: 7z Aonly GSI
if: env.BUILD_AONLY == 'true'
run: 7za a -t7z -r $ROM_AONLY ErfanGSIs/output/*
- name: Upload Aonly GSI to WeTransfer
if: env.BUILD_AONLY == 'true'
run: |
curl -sL https://git.io/file-transfer | sh
./transfer wet $ROM_AONLY
- name: Clear output
if: env.BUILD_AB == 'true'
run: sudo rm -rf ErfanGSIs/output/*
- name: Download Stock Rom & Generate AB GSI
if: env.BUILD_AB == 'true'
run: sudo ./ErfanGSIs/url2GSI.sh -b $ROM_URL $ROM_NAME
- name: 7z AB GSI
if: env.BUILD_AB == 'true'
run: 7za a -t7z -r $ROM_AB ErfanGSIs/output/*
- name: Upload AB GSI to WeTransfer
if: env.BUILD_AB == 'true'
run: |
curl -sL https://git.io/file-transfer | sh
./transfer wet $ROM_AB