Skip to content
Open
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
46 changes: 18 additions & 28 deletions .github/workflows/recovery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,24 @@ env:
# change value from:

# A) choosing right manifest:
# 1) recovery type:
# to build twrp, add: twrp
# to build shrp, add: shrp
# to build pbrp, add: pbrp
RTYPE: twrp
# 2) manifest is required choose the compatible its depend on your current android version.
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_omni.git
# 3) manifest branch same thing it depend on your current android
BRANCH: twrp-9.0
# 1) manifest is required choose the compatible its depend on your current android version.
MANIFEST: https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git
# 2) manifest branch same thing it depend on your current android
BRANCH: twrp-11

# B) Information about your device:
# 1) every device tree use main file called twrp_/omni_****.mk use the name between .mk and omni_/twrp_ keyword
DEVICE: m10lte
DEVICE: X698
# 2) device tree link
DT_LINK: https://github.com/youssefnone/android_recovery_samsung_m10lte
# 3) device tree branch which you want to build
# if your repo doesnt have a one branch not renamed use: main
DT_BR: twrp-1.0
# 4) device manufacturer please you the one which used on device.mk or BoardConfig.mk
MANUFACTURER: samsung
# 5) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot
TARGET: recovery
# 6) build type eng (recommended) , user (dont use it), userdebug (this too)
DT_LINK: https://github.com/Abdullashakee/android_device_infinix_Infinix-X698
# 3) device manufacturer please you the one which used on device.mk or BoardConfig.mk
MANUFACTURER: infinix
# 4) target build. depend on what you have on you phone. recovery partition: recovery or recovery in boot partition: boot
TARGET: boot
# 5) build type eng (recommended) , user (dont use it), userdebug (this too)
BTYPE: eng
# 7) Twrp type omni or twrp may depend on main file omni_/twrp_****.mk
OT: omni
# 6) Twrp type omni or twrp may depend on main file omni_/twrp_****.mk
OT: twrp
# end dont edit anything after this comment

# C) these part and what under dont edit it
Expand All @@ -48,9 +40,9 @@ jobs:

- name: remove pkg and setting repo
run: |
sudo apt update && sudo apt install zip
curl -LO https://github.com/SA-17/rm_pkg/raw/main/setup.sh && bash setup.sh
sudo -E apt-get -qq update
sudo apt update && sudo apt install git zip
git clone https://github.com/SA-17/rm_pkg pkg && cd pkg && bash setup.sh
cd .. && sudo -E apt-get -qq update
sudo -E apt-get -qq install bc build-essential tar zip curl libstdc++6 git wget python gcc clang libssl-dev repo rsync flex curl bison aria2
sudo curl --create-dirs -L -o /usr/local/bin/repo -O -L https://storage.googleapis.com/git-repo-downloads/repo
sudo chmod a+rx /usr/local/bin/repo
Expand All @@ -61,15 +53,13 @@ jobs:
cd work
repo init -u $MANIFEST -b $BRANCH --depth=1
repo sync -c -j700 --force-sync --no-clone-bundle --no-tags
git clone $DT_LINK -b $DT_BR --depth=1 --single-branch device/$MANUFACTURER/$DEVICE
git clone $DT_LINK --depth=1 --single-branch device/$MANUFACTURER/$DEVICE

- name: Build recovery
run: |
cd work
. build/envsetup.sh && lunch $OT$SYM$DEVICE-$BTYPE && export ALLOW_MISSING_DEPENDENCIES=true && mka $TARGET$IMAGE -j30
curl -LO https://github.com/SA-17/rm_pkg/raw/main/zip.sh
bash zip.sh

zip out/target/product/recovery.zip out/target/product/$DEVICE/$TARGET.*
- name: Release recovery
uses: softprops/action-gh-release@v1
env:
Expand Down