forked from together08/actions_build_ErfanGSIs
-
Notifications
You must be signed in to change notification settings - Fork 21
55 lines (46 loc) · 1.72 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
name: build_ErfanGSIs
on:
# release:
# types: [published]
# push:
# branches:
# -
# paths:
# - '.config'
# schedule:
# - cron: 0 8 * * 5
watch:
types: [started]
env:
ROM_URL: https://download.meizu.com/Firmware/Flyme/16s/9.21.6.15/cn_daily/20210615152751/fc560b23/update.zip
ROM_NAME: Flyme
TZ: Asia/Shanghai
jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id
steps:
- name: Checkout
uses: actions/checkout@master
- name: Cleaning up
run: |
docker rmi `docker images -q`
- name: Cloning ErfanGSIs tools
run: |
git clone --recurse-submodules https://github.com/WhiteMouseHuang/ErfanGSIs.git
sudo chmod -R 777 ErfanGSIs
curl -sL https://git.io/file-transfer | sh
- name: Setting up Porting Environment
run: |
cd ErfanGSIs
sudo apt update
sudo bash setup.sh
- name: Download Stock Rom & Generate GSI
run: |
sudo ./ErfanGSIs/url2GSI.sh $ROM_URL $ROM_NAME --ab
ls /home/runner/work/actions_build_ErfanGSIs/actions_build_ErfanGSIs/ErfanGSIs/output/
7z a -r $ROM_NAME-ab.7z /home/runner/work/actions_build_ErfanGSIs/actions_build_ErfanGSIs/ErfanGSIs/output/$ROM_NAME-AB-10-*-ErfanGSI.img
sudo ./transfer wet $ROM_NAME-ab.7z
# sudo rm $ROM_NAME-ab.7z
# 7z a -r $ROM_NAME-aonly.7z /home/runner/work/actions_build_ErfanGSIs/actions_build_ErfanGSIs/ErfanGSIs/output/$ROM_NAME-Aonly-*-ErfanGSI.img
# sudo ./transfer wet $ROM_NAME-aonly.7z