Skip to content

Commit 521db7c

Browse files
authored
Merge pull request azwhikaru#6 from XenonTheInertG/main
Fix typo & change variables to avoid confusion
2 parents a56506f + 50f70ec commit 521db7c

File tree

4 files changed

+155
-98
lines changed

4 files changed

+155
-98
lines changed

.github/workflows/Make.yml

Lines changed: 29 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
name: Make Recovery
1+
name: Android-Recovery-Builder
22

33
on:
44
workflow_dispatch:
55
inputs:
6-
LIBRARY_URL:
7-
description: 'LIBRARY_URL'
6+
MANIFEST_TYPE:
7+
description: 'MANIFEST_TYPE'
88
required: true
9-
default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
10-
LIBRARY_BRANCH:
9+
default: 'omni'
10+
MANIFEST_URL:
11+
description: 'MANIFEST_URL'
12+
required: true
13+
default: 'git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
14+
MANIFEST_BRANCH:
1115
description: 'LIBRARY_BRANCH'
1216
required: true
13-
default: 'twrp-10.0-deprecated'
14-
LIBRARY_TYPE:
15-
description: 'LIBRARY_TYPE'
16-
required: false
17-
default: 'omni_'
18-
DEVICE_URL:
19-
description: 'DEVICE_URL'
17+
default: 'twrp-9.0'
18+
DEVICE_TREE_URL:
19+
description: 'DEVICE_TREE_URL'
2020
required: true
21-
default: 'https://github.com/Xpsoted/android_device_qualcomm_qrd855-TWRP'
22-
DEVICE_BRANCH:
23-
description: 'DEVICE_BRANCH'
21+
default: 'https://github.com/azwhikaru/twrp_device_xiaomi_archytas'
22+
DEVICE_TREE_BRANCH:
23+
description: 'DEVICE_TREE_BRANCH'
2424
required: true
25-
default: 'android-10'
25+
default: 'twrp-9.0'
2626
DEVICE_PATH:
2727
description: 'DEVICE_PATH'
2828
required: true
29-
default: 'device/qualcomm/msmnile'
29+
default: 'device/xiaomi/Archytas'
3030
DEVICE_NAME:
3131
description: 'DEVICE_NAME'
3232
required: true
33-
default: 'msmnile'
33+
default: 'Archytas'
3434

3535
jobs:
3636
build:
@@ -50,6 +50,7 @@ jobs:
5050
sudo apt -y autoclean
5151
sudo apt clean
5252
sudo apt update
53+
sudo apt -y upgrade
5354
sudo apt -y install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc unzip jq bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev imagemagick libbz2-dev libssl-dev lzma ncftp bash-completion python openjdk-8-jdk qemu-user-static
5455
5556
- name: Set variables
@@ -72,38 +73,36 @@ jobs:
7273
echo "::set-output name=pwd::$(pwd)"
7374
git config --global user.name "Hikaru's Action-Build-Bot"
7475
git config --global user.email "Android@teio.tk"
75-
repo init --depth=1 -u ${{ github.event.inputs.LIBRARY_URL }} -b ${{ github.event.inputs.LIBRARY_BRANCH }}
76+
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
7677
id: pwd
7778

7879
- name: Repo Sync
7980
run: |
8081
PATH=~/bin:$PATH
8182
cd workspace
82-
repo sync -j$(nproc --all)
83+
repo sync -j$(nproc --all) -f --force-sync
84+
ls -al
8385
84-
- name: Clone device
86+
- name: Clone device tree
8587
run: |
8688
PATH=~/bin:$PATH
8789
cd ${{ steps.pwd.outputs.pwd }}
88-
git clone ${{ github.event.inputs.DEVICE_URL }} -b ${{ github.event.inputs.DEVICE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
90+
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
8991
90-
- name: Building
92+
- name: Building recovery
9193
run: |
9294
PATH=~/bin:$PATH
9395
cd ${{ steps.pwd.outputs.pwd }}
9496
export ALLOW_MISSING_DEPENDENCIES=true
9597
source build/envsetup.sh
96-
lunch ${{ github.event.inputs.LIBRARY_TYPE }}${{ github.event.inputs.DEVICE_NAME }}-eng
98+
lunch ${{ github.event.inputs.MANIFEST_TYPE }}_${{ github.event.inputs.DEVICE_NAME }}-eng
9799
make clean
98-
make recoveryimage -j$(nproc --all)
99-
100+
make recoveryimage -j$(nproc --all)
101+
100102
- name: Upload to Release
101103
uses: softprops/action-gh-release@v1
102104
with:
103-
files: |
104-
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/*.zip
105-
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
106-
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/boot.img
105+
files: workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
107106
name: ${{ github.event.inputs.DEVICE_NAME }}-${{ github.run_id }}
108107
tag_name: ${{ github.run_id }}
109108
body: Recovery for ${{ github.event.inputs.DEVICE_NAME }}

.github/workflows/Make_Common.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
name: Make Recovery With Common Tree
1+
name: Android-Recovery-Builder
22

33
on:
44
workflow_dispatch:
55
inputs:
6-
LIBRARY_NAME:
7-
description: 'LIBRARY_NAME'
6+
MANIFEST_TYPE:
7+
description: 'MANIFEST_TYPE'
88
required: true
99
default: 'omni'
10-
LIBRARY_URL:
11-
description: 'LIBRARY_URL'
10+
MANIFEST_URL:
11+
description: 'MANIFEST_URL'
1212
required: true
1313
default: 'https://github.com/SHRP/platform_manifest_twrp_omni.git'
14-
LIBRARY_BRANCH:
15-
description: 'LIBRARY_BRANCH'
14+
MANIFEST_BRANCH:
15+
description: 'MANIFEST_BRANCH'
1616
required: true
1717
default: 'v3_10.0'
18-
DEVICE_URL:
19-
description: 'DEVICE_URL'
18+
DEVICE_TREE_URL:
19+
description: 'DEVICE_TREE_URL'
2020
required: true
2121
default: 'https://github.com/SGCMarkus/android_device_lge_flashlmdd-twrp'
2222
DEVICE_COMMON_URL:
2323
description: 'DEVICE_COMMON_URL'
2424
required: true
2525
default: 'https://github.com/SGCMarkus/android_device_lge_sm8150-common-twrp'
26-
DEVICE_BRANCH:
27-
description: 'DEVICE_BRANCH'
26+
DEVICE_TREE_BRANCH:
27+
description: 'DEVICE_TREE_BRANCH'
2828
required: true
2929
default: 'android-10'
3030
DEVICE_PATH:
@@ -80,7 +80,7 @@ jobs:
8080
echo "::set-output name=pwd::$(pwd)"
8181
git config --global user.name "Hikaru's Action-Build-Bot"
8282
git config --global user.email "Android@teio.tk"
83-
repo init --depth=1 -u ${{ github.event.inputs.LIBRARY_URL }} -b ${{ github.event.inputs.LIBRARY_BRANCH }}
83+
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
8484
id: pwd
8585

8686
- name: Repo Sync
@@ -93,16 +93,16 @@ jobs:
9393
run: |
9494
PATH=~/bin:$PATH
9595
cd ${{ steps.pwd.outputs.pwd }}
96-
git clone ${{ github.event.inputs.DEVICE_URL }} -b ${{ github.event.inputs.DEVICE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
97-
git clone ${{ github.event.inputs.DEVICE_COMMON_URL }} -b ${{ github.event.inputs.DEVICE_BRANCH }} ./${{ github.event.inputs.DEVICE_COMMON_PATH }}
96+
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
97+
git clone ${{ github.event.inputs.DEVICE_COMMON_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_COMMON_PATH }}
9898
9999
- name: Building
100100
run: |
101101
PATH=~/bin:$PATH
102102
cd ${{ steps.pwd.outputs.pwd }}
103103
export ALLOW_MISSING_DEPENDENCIES=true
104104
source build/envsetup.sh
105-
lunch ${{ github.event.inputs.LIBRARY_NAME }}_${{ github.event.inputs.DEVICE_NAME }}-eng
105+
lunch ${{ github.event.inputs.MANIFEST_TYPE }}_${{ github.event.inputs.DEVICE_NAME }}-eng
106106
make clean
107107
make recoveryimage -j$(nproc --all)
108108

README.md

Lines changed: 28 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,57 @@
1-
# 使用 Github Action 编译 Recovery
1+
# Use Github Action to compile Recovery
22
```
3-
支持 OFRPSHRPTWRP 编译制作
3+
Support OFRP, SHRP, TWRP compilation and production
44
```
55
---
66

7-
## 更新说明
8-
```
9-
= 2021/11/29
10-
- 更新 LIBRARY_NAME 规则,现在 LIBRARY_NAME 不是必须的了
11-
(如果需要继续使用,则需要加上 '_',如 'omni_')
12-
```
13-
```
14-
= 2021/11/20
15-
- 增加默认上传 boot.img
16-
```
17-
```
18-
= 2021/11/17
19-
- 增加编译模式支持 (在 vendorsetup: userdebug/eng/debug)
20-
```
21-
```
22-
= 2021/10/31
23-
- 增加 Common 设备支持 [@Xpsoted](https://github.com/Xpsoted)
24-
```
25-
26-
```
27-
= 2021/10/30
28-
- 优化文件打包上传方式,支持输出 OFRP、SHRP 的卡刷升级包与原始镜像
29-
- 简化制造时的部分流程
30-
```
31-
7+
## Release Notes
328
```
339
= 2021/10/29:
34-
- 重构 2.0 版本
35-
- 完全重构使用逻辑,降低使用难度
36-
- 优化参数传递部分,现在可以同时运行多个 Worker
37-
- TWRP 编译测试通过
38-
- OFRP 编译测试通过
39-
- SHRP 编译测试通过
10+
-Refactored version 2.0
11+
-Completely reconstruct the use logic to reduce the difficulty of use
12+
-Optimize the parameter transfer part, now you can run multiple Workers at the same time
13+
-TWRP compilation test passed
14+
-OFRP compilation test passed
15+
-SHRP compile test passed
4016
```
4117

4218
-----
4319

44-
## 参数说明
20+
## Parameter Description
4521

46-
| 名称 | 描述 | 示例 |
22+
| Name | Description | Example |
4723
| ------------ | -------------------- | ------------ |
48-
| `LIBRARY_NAME` | 源码类型 | omni |
49-
| `LIBRARY_URL` | 源码地址 | https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git |
50-
| `LIBRARY_BRANCH` | 源码分支 | twrp-9.0 |
51-
| `DEVICE_URL` | 设备地址 | https://github.com/azwhikaru/twrp_device_xiaomi_archytas |
52-
| `DEVICE_BRANCH` | 设备分支 | twrp-9.0 |
53-
| `DEVICE_PATH` | 设备位置 | device/xiaomi/Archytas |
54-
| `DEVICE_NAME` | 机型名称 | Archytas |
55-
| `DEVICE_TYPE` | 编译模式 | eng/userdebug/debug |
24+
| `MANIFEST_TYPE` | Source Type | omni |
25+
| `MANIFEST_URL` | Source address| https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git |
26+
| `MANIFEST_BRANCH` | Source branch | twrp-9.0 |
27+
| `DEVICE_TREE_URL` | Device address| https://github.com/azwhikaru/twrp_device_xiaomi_archytas |
28+
| `DEVICE_TREE_BRANCH` | Device branch | twrp-9.0 |
29+
| `DEVICE_PATH` | Device location | device/xiaomi/Archytas |
30+
| `DEVICE_NAME` | Model name | Archytas |
5631

5732
-----
5833

59-
## 如何使用
34+
## how to use
6035
```
61-
例如你的用户名为: Fun-114514
36+
For example, your username is: Fun-114514
6237
```
63-
#### 1、点击本仓库右上角的 'Fork'
38+
#### 1. Click'Fork' in the upper right corner of this warehouse
6439
![](https://i.bmp.ovh/imgs/2021/10/6b6ed9f29e732372.png)
65-
#### 2、等待自动跳转后,你会看到你自己的用户名
40+
#### 2. After waiting for the automatic redirection, you will see your own username
6641
![](https://i.bmp.ovh/imgs/2021/10/66cfe324c0ebb69b.png)
67-
#### 3、点击 'Actions - Make Recovery'
42+
#### 3. Click'Actions-Make Recovery'
6843
![](https://i.bmp.ovh/imgs/2021/10/23896d1b66292047.png)
69-
#### 4、点击 'Run workflow' 并按照上文 '参数说明' 填写
44+
#### 4. Click'Run workflow' and fill in according to the above'parameter description'
7045
![](https://i.bmp.ovh/imgs/2021/10/9cb7871267cf2f53.png)
71-
#### 5、填写完成后点击 'Run workflow' 开始运行
46+
#### 5. After filling in, click'Run workflow' to start running
7247

7348
-----
7449

75-
## 编译结果
76-
可以在 [Release](../../releases) 下载
50+
## Compilation results
51+
Can be downloaded at [Release](../../releases)
7752

7853
-----
79-
## 备注
54+
## Remark
8055

8156
#### TeamWin Recovery Project: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git
8257
#### OrangeFox Recovery Project: https://gitlab.com/OrangeFox/Manifest.git

README_CN.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# 使用 Github Action 编译 Recovery
2+
```
3+
支持 OFRP、SHRP、TWRP 编译制作
4+
```
5+
---
6+
7+
## 更新说明
8+
```
9+
= 2021/11/29
10+
- 更新 LIBRARY_NAME 规则,现在 LIBRARY_NAME 不是必须的了
11+
(如果需要继续使用,则需要加上 '_',如 'omni_')
12+
```
13+
```
14+
= 2021/11/20
15+
- 增加默认上传 boot.img
16+
```
17+
```
18+
= 2021/11/17
19+
- 增加编译模式支持 (在 vendorsetup: userdebug/eng/debug)
20+
```
21+
```
22+
= 2021/10/31
23+
- 增加 Common 设备支持 [@Xpsoted](https://github.com/Xpsoted)
24+
```
25+
26+
```
27+
= 2021/10/30
28+
- 优化文件打包上传方式,支持输出 OFRP、SHRP 的卡刷升级包与原始镜像
29+
- 简化制造时的部分流程
30+
```
31+
32+
```
33+
= 2021/10/29:
34+
- 重构 2.0 版本
35+
- 完全重构使用逻辑,降低使用难度
36+
- 优化参数传递部分,现在可以同时运行多个 Worker
37+
- TWRP 编译测试通过
38+
- OFRP 编译测试通过
39+
- SHRP 编译测试通过
40+
```
41+
42+
-----
43+
44+
## 参数说明
45+
46+
| 名称 | 描述 | 示例 |
47+
| ------------ | -------------------- | ------------ |
48+
| `LIBRARY_NAME` | 源码类型 | omni |
49+
| `LIBRARY_URL` | 源码地址 | https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git |
50+
| `LIBRARY_BRANCH` | 源码分支 | twrp-9.0 |
51+
| `DEVICE_URL` | 设备地址 | https://github.com/azwhikaru/twrp_device_xiaomi_archytas |
52+
| `DEVICE_BRANCH` | 设备分支 | twrp-9.0 |
53+
| `DEVICE_PATH` | 设备位置 | device/xiaomi/Archytas |
54+
| `DEVICE_NAME` | 机型名称 | Archytas |
55+
| `DEVICE_TYPE` | 编译模式 | eng/userdebug/debug |
56+
57+
-----
58+
59+
## 如何使用
60+
```
61+
例如你的用户名为: Fun-114514
62+
```
63+
#### 1、点击本仓库右上角的 'Fork'
64+
![](https://i.bmp.ovh/imgs/2021/10/6b6ed9f29e732372.png)
65+
#### 2、等待自动跳转后,你会看到你自己的用户名
66+
![](https://i.bmp.ovh/imgs/2021/10/66cfe324c0ebb69b.png)
67+
#### 3、点击 'Actions - Make Recovery'
68+
![](https://i.bmp.ovh/imgs/2021/10/23896d1b66292047.png)
69+
#### 4、点击 'Run workflow' 并按照上文 '参数说明' 填写
70+
![](https://i.bmp.ovh/imgs/2021/10/9cb7871267cf2f53.png)
71+
#### 5、填写完成后点击 'Run workflow' 开始运行
72+
73+
-----
74+
75+
## 编译结果
76+
可以在 [Release](../../releases) 下载
77+
78+
-----
79+
## 备注
80+
81+
#### TeamWin Recovery Project: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git
82+
#### OrangeFox Recovery Project: https://gitlab.com/OrangeFox/Manifest.git
83+
#### SKYHAWK Recovery Project: https://github.com/SHRP/platform_manifest_twrp_omni.git

0 commit comments

Comments
 (0)