1- name : Make Recovery
1+ name : Android- Recovery-Builder
22
33on :
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
3535jobs :
3636 build :
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 }}
0 commit comments