Fix typo & change variables to avoid confusion
- LIBRARY_TYPE->MANIFEST_URL - LIBRARY_URL->MANIFEST_URL - DEVICE_URL->DEVICE_TREE_URL
This commit is contained in:
parent
3cd7c47226
commit
5a28937398
59
.github/workflows/Make.yml
vendored
59
.github/workflows/Make.yml
vendored
@ -1,36 +1,36 @@
|
|||||||
name: Make Recovery
|
name: Android-Recovery-Builder
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
LIBRARY_URL:
|
MANIFEST_TYPE:
|
||||||
description: 'LIBRARY_URL'
|
description: 'MANIFEST_TYPE'
|
||||||
required: true
|
required: true
|
||||||
default: 'https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
|
default: 'omni'
|
||||||
LIBRARY_BRANCH:
|
MANIFEST_URL:
|
||||||
|
description: 'MANIFEST_URL'
|
||||||
|
required: true
|
||||||
|
default: 'git://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git'
|
||||||
|
MANIFEST_BRANCH:
|
||||||
description: 'LIBRARY_BRANCH'
|
description: 'LIBRARY_BRANCH'
|
||||||
required: true
|
required: true
|
||||||
default: 'twrp-10.0-deprecated'
|
default: 'twrp-9.0'
|
||||||
LIBRARY_TYPE:
|
DEVICE_TREE_URL:
|
||||||
description: 'LIBRARY_TYPE'
|
description: 'DEVICE_TREE_URL'
|
||||||
required: false
|
|
||||||
default: 'omni_'
|
|
||||||
DEVICE_URL:
|
|
||||||
description: 'DEVICE_URL'
|
|
||||||
required: true
|
required: true
|
||||||
default: 'https://github.com/Xpsoted/android_device_qualcomm_qrd855-TWRP'
|
default: 'https://github.com/azwhikaru/twrp_device_xiaomi_archytas'
|
||||||
DEVICE_BRANCH:
|
DEVICE_TREE_BRANCH:
|
||||||
description: 'DEVICE_BRANCH'
|
description: 'DEVICE_TREE_BRANCH'
|
||||||
required: true
|
required: true
|
||||||
default: 'android-10'
|
default: 'twrp-9.0'
|
||||||
DEVICE_PATH:
|
DEVICE_PATH:
|
||||||
description: 'DEVICE_PATH'
|
description: 'DEVICE_PATH'
|
||||||
required: true
|
required: true
|
||||||
default: 'device/qualcomm/msmnile'
|
default: 'device/xiaomi/Archytas'
|
||||||
DEVICE_NAME:
|
DEVICE_NAME:
|
||||||
description: 'DEVICE_NAME'
|
description: 'DEVICE_NAME'
|
||||||
required: true
|
required: true
|
||||||
default: 'msmnile'
|
default: 'Archytas'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -50,6 +50,7 @@ jobs:
|
|||||||
sudo apt -y autoclean
|
sudo apt -y autoclean
|
||||||
sudo apt clean
|
sudo apt clean
|
||||||
sudo apt update
|
sudo apt update
|
||||||
|
sudo apt -y upgrade
|
||||||
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
|
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
|
||||||
|
|
||||||
- name: Set variables
|
- name: Set variables
|
||||||
@ -72,38 +73,36 @@ 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
|
||||||
run: |
|
run: |
|
||||||
PATH=~/bin:$PATH
|
PATH=~/bin:$PATH
|
||||||
cd workspace
|
cd workspace
|
||||||
repo sync -j$(nproc --all)
|
repo sync -j$(nproc --all) -f --force-sync
|
||||||
|
ls -al
|
||||||
|
|
||||||
- name: Clone device
|
- name: Clone device tree
|
||||||
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 }}
|
||||||
|
|
||||||
- name: Building
|
- name: Building recovery
|
||||||
run: |
|
run: |
|
||||||
PATH=~/bin:$PATH
|
PATH=~/bin:$PATH
|
||||||
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_TYPE }}${{ 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)
|
||||||
|
|
||||||
- name: Upload to Release
|
- name: Upload to Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: |
|
files: workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
|
||||||
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/*.zip
|
|
||||||
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery.img
|
|
||||||
workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/boot.img
|
|
||||||
name: ${{ github.event.inputs.DEVICE_NAME }}-${{ github.run_id }}
|
name: ${{ github.event.inputs.DEVICE_NAME }}-${{ github.run_id }}
|
||||||
tag_name: ${{ github.run_id }}
|
tag_name: ${{ github.run_id }}
|
||||||
body: Recovery for ${{ github.event.inputs.DEVICE_NAME }}
|
body: Recovery for ${{ github.event.inputs.DEVICE_NAME }}
|
||||||
|
Loading…
Reference in New Issue
Block a user