This repository has been archived by the owner on May 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
67 lines (53 loc) · 1.74 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
name: build_ErfanGSIs
on:
# release:
# types: [published]
# push:
# branches:
# - master
# paths:
# - '.config'
# schedule:
# - cron: 0 8 * * 5
watch:
types: [started]
env:
ROM_URL: http://bigota.d.miui.com/20.4.27/miui_MIMIX3_20.4.27_8f7879221b_10.0.zip
ROM_NAME: MIUI
BUILD_TYPE: ab
TZ: Asia/Shanghai
jobs:
build:
runs-on: ubuntu-18.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@master
- name: Initialization environment
run: |
sudo -E apt-get -qq install git wget
- name: Clone ErfanGSI Source Code
run: git clone --recurse-submodules https://github.com/erfanoabdi/ErfanGSIs.git ErfanGSIs
- name: Fix exit
run: |
sed -i 's/\|\| exit 1//g' $GITHUB_WORKSPACE/ErfanGSIs/url2GSI.sh
sed -i 's/exit 1//g' $GITHUB_WORKSPACE/ErfanGSIs/url2GSI.sh
- name: Setting up ErfanGSI requirements
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs
mkdir ./output
sudo bash ./setup.sh
- name: Download Stock Rom & Generate GSI
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs
sudo bash ./url2GSI.sh -c --$BUILD_TYPE $ROM_URL $ROM_NAME
- name: Zip GSI
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs/output
mkdir final
zip -r final/GSI.zip ./*
- name: Upload GSI to WeTransfer
run: |
cd $GITHUB_WORKSPACE/ErfanGSIs/output
curl -sL https://git.io/file-transfer | sh
./transfer wet ./final/GSI.zip