This commit is contained in:
Mahin Ahmed 2021-12-06 10:19:36 +06:00 committed by GitHub
parent 5a28937398
commit 50f70ec415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,30 +1,30 @@
name: Make Recovery With Common Tree name: Android-Recovery-Builder
on: on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
LIBRARY_NAME: MANIFEST_TYPE:
description: 'LIBRARY_NAME' description: 'MANIFEST_TYPE'
required: true required: true
default: 'omni' default: 'omni'
LIBRARY_URL: MANIFEST_URL:
description: 'LIBRARY_URL' description: 'MANIFEST_URL'
required: true required: true
default: 'https://github.com/SHRP/platform_manifest_twrp_omni.git' default: 'https://github.com/SHRP/platform_manifest_twrp_omni.git'
LIBRARY_BRANCH: MANIFEST_BRANCH:
description: 'LIBRARY_BRANCH' description: 'MANIFEST_BRANCH'
required: true required: true
default: 'v3_10.0' default: 'v3_10.0'
DEVICE_URL: DEVICE_TREE_URL:
description: 'DEVICE_URL' description: 'DEVICE_TREE_URL'
required: true required: true
default: 'https://github.com/SGCMarkus/android_device_lge_flashlmdd-twrp' default: 'https://github.com/SGCMarkus/android_device_lge_flashlmdd-twrp'
DEVICE_COMMON_URL: DEVICE_COMMON_URL:
description: 'DEVICE_COMMON_URL' description: 'DEVICE_COMMON_URL'
required: true required: true
default: 'https://github.com/SGCMarkus/android_device_lge_sm8150-common-twrp' default: 'https://github.com/SGCMarkus/android_device_lge_sm8150-common-twrp'
DEVICE_BRANCH: DEVICE_TREE_BRANCH:
description: 'DEVICE_BRANCH' description: 'DEVICE_TREE_BRANCH'
required: true required: true
default: 'android-10' default: 'android-10'
DEVICE_PATH: DEVICE_PATH:
@ -80,7 +80,7 @@ jobs:
echo "::set-output name=pwd::$(pwd)" echo "::set-output name=pwd::$(pwd)"
git config --global user.name "Hikaru's Action-Build-Bot" git config --global user.name "Hikaru's Action-Build-Bot"
git config --global user.email "Android@teio.tk" 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 id: pwd
- name: Repo Sync - name: Repo Sync
@ -93,8 +93,8 @@ jobs:
run: | run: |
PATH=~/bin:$PATH PATH=~/bin:$PATH
cd ${{ steps.pwd.outputs.pwd }} 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 }}
git clone ${{ github.event.inputs.DEVICE_COMMON_URL }} -b ${{ github.event.inputs.DEVICE_BRANCH }} ./${{ github.event.inputs.DEVICE_COMMON_PATH }} git clone ${{ github.event.inputs.DEVICE_COMMON_URL }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_COMMON_PATH }}
- name: Building - name: Building
run: | run: |
@ -102,7 +102,7 @@ jobs:
cd ${{ steps.pwd.outputs.pwd }} cd ${{ steps.pwd.outputs.pwd }}
export ALLOW_MISSING_DEPENDENCIES=true export ALLOW_MISSING_DEPENDENCIES=true
source build/envsetup.sh 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 clean
make recoveryimage -j$(nproc --all) make recoveryimage -j$(nproc --all)