Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletions .github/workflows/Make.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
name: Make Recovery
name: Android-Recovery-Builder

on:
workflow_dispatch:
inputs:
LIBRARY_NAME:
description: 'LIBRARY_NAME'
MANIFEST_TYPE:
description: 'MANIFEST_TYPE'
required: true
default: 'omni'
LIBRARY_URL:
description: 'LIBRARY_URL'
MANIFEST_URL:
description: 'MANIFEST_URL'
required: true
default: 'git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
LIBRARY_BRANCH:
MANIFEST_BRANCH:
description: 'LIBRARY_BRANCH'
required: true
default: 'twrp-9.0'
DEVICE_URL:
description: 'DEVICE_URL'
DEVICE_TREE_URL:
description: 'DEVICE_TREE_URL'
required: true
default: 'https://github.com/azwhikaru/twrp_device_xiaomi_archytas'
DEVICE_BRANCH:
description: 'DEVICE_BRANCH'
DEVICE_TREE_BRANCH:
description: 'DEVICE_TREE_BRANCH'
required: true
default: 'twrp-9.0'
DEVICE_PATH:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
echo "::set-output name=pwd::$(pwd)"
git config --global user.name "Hikaru's Action-Build-Bot"
git config --global user.email "Android@teio.tk"
repo init --depth=1 -u ${{ github.event.inputs.LIBRARY_URL }} -b ${{ github.event.inputs.LIBRARY_BRANCH }}
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
id: pwd

- name: Repo Sync
Expand All @@ -83,19 +83,19 @@ jobs:
repo sync -j$(nproc --all) -f --force-sync
ls -al

- name: Clone device
- name: Clone device tree
run: |
PATH=~/bin:$PATH
cd ${{ steps.pwd.outputs.pwd }}
git clone ${{ github.event.inputs.DEVICE_URL }} -b ${{ github.event.inputs.DEVICE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}
git clone ${{ github.event.inputs.DEVICE_TREE_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }}

- name: Building
- name: Building recovery
run: |
PATH=~/bin:$PATH
cd ${{ steps.pwd.outputs.pwd }}
export ALLOW_MISSING_DEPENDENCIES=true
source build/envsetup.sh
lunch ${{ github.event.inputs.LIBRARY_NAME }}_${{ github.event.inputs.DEVICE_NAME }}-eng
lunch ${{ github.event.inputs.MANIFEST_TYPE }}_${{ github.event.inputs.DEVICE_NAME }}-eng
make clean
make recoveryimage -j$(nproc --all)

Expand All @@ -107,4 +107,4 @@ jobs:
tag_name: ${{ github.run_id }}
body: Recovery for ${{ github.event.inputs.DEVICE_NAME }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@

| 名称 | 描述 | 示例 |
| ------------ | -------------------- | ------------ |
| `LIBRARY_NAME` | 源码类型 | omni |
| `LIBRARY_URL` | 源码地址 | https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git |
| `LIBRARY_BRANCH` | 源码分支 | twrp-9.0 |
| `DEVICE_URL` | 设备地址 | https://github.com/azwhikaru/twrp_device_xiaomi_archytas |
| `DEVICE_BRANCH` | 设备分支 | twrp-9.0 |
| `MANIFEST_TYPE` | 源码类型 | omni |
| `MANIFEST_URL` | 源码地址 | https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git |
| `MANIFEST_BRANCH` | 源码分支 | twrp-9.0 |
| `DEVICE_TREE_URL` | 设备地址 | https://github.com/azwhikaru/twrp_device_xiaomi_archytas |
| `DEVICE_TREE_BRANCH` | 设备分支 | twrp-9.0 |
| `DEVICE_PATH` | 设备位置 | device/xiaomi/Archytas |
| `DEVICE_NAME` | 机型名称 | Archytas |

Expand Down Expand Up @@ -55,4 +55,4 @@

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