|
|
@@ -14,19 +14,19 @@ on:
|
|
|
DEVICE_TREE:
|
|
|
description: 'Custom Recovery Tree'
|
|
|
required: true
|
|
|
- default: 'https://github.com/kinguser981/cap_sprout_orangefox'
|
|
|
+ default: 'https://github.com/kinguser981/android_device_xiaomi_marble-OFRP'
|
|
|
DEVICE_TREE_BRANCH:
|
|
|
description: 'Custom Recovery Tree Branch'
|
|
|
required: true
|
|
|
- default: 'OrangeFox-12.1'
|
|
|
+ default: 'fox_12.1'
|
|
|
DEVICE_PATH:
|
|
|
description: 'Specify your device path.'
|
|
|
required: true
|
|
|
- default: 'device/nokia/cap_sprout'
|
|
|
+ default: 'device/xiaomi/marble'
|
|
|
DEVICE_NAME:
|
|
|
description: 'Specify your Device Codename.'
|
|
|
required: true
|
|
|
- default: 'cap_sprout'
|
|
|
+ default: 'marble'
|
|
|
BUILD_TARGET:
|
|
|
description: 'Specify your Build Target'
|
|
|
required: true
|
|
|
@@ -132,6 +132,11 @@ jobs:
|
|
|
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
|
|
if [ -f out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img ]; then
|
|
|
echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
|
|
|
+ echo "FILE_PATH=${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}" >> $GITHUB_ENV
|
|
|
+ echo "MD5_IMG=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
|
|
+ elif [ -f out/target/product/${{ github.event.inputs.DEVICE_NAME }}/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img ]; then
|
|
|
+ echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
|
|
|
+ echo "FILE_PATH=${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/target/product/${{ github.event.inputs.DEVICE_NAME }}" >> $GITHUB_ENV
|
|
|
echo "MD5_IMG=$(md5sum out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
|
|
else
|
|
|
echo "Recovery out directory is empty."
|
|
|
@@ -140,7 +145,7 @@ jobs:
|
|
|
|
|
|
- name: Rename the Recovery
|
|
|
run: |
|
|
|
- cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
+ cd ${{ env.FILE_PATH }}/
|
|
|
if [ "${{ github.event.inputs.BUILD_TARGET }}" = "boot" ]; then
|
|
|
mv OrangeFox*.img boot.img
|
|
|
echo "RECOVERY_TYPE=boot" >> $GITHUB_ENV
|
|
|
@@ -161,7 +166,7 @@ jobs:
|
|
|
- name: Include Recovery Installer
|
|
|
run: |
|
|
|
if [ ${{ github.event.inputs.RECOVERY_INSTALLER }} = true ]; then
|
|
|
- cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
+ cd ${{ env.FILE_PATH }}/
|
|
|
wget https://github.com/kinguser981/recovery-installer/releases/download/11256427880/recovery-installer.zip
|
|
|
zip -ur recovery-installer.zip ${{ env.RECOVERY_TYPE }}.img
|
|
|
fi
|
|
|
@@ -170,7 +175,7 @@ jobs:
|
|
|
- name: Recovery to tar for Samsung devices
|
|
|
run: |
|
|
|
if [ ${{ github.event.inputs.RECOVERY_TAR }} = true ]; then
|
|
|
- cd OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/
|
|
|
+ cd ${{ env.FILE_PATH }}/
|
|
|
tar -cvf ${{ env.RECOVERY_TYPE }}.tar ${{ env.RECOVERY_TYPE }}.img
|
|
|
fi
|
|
|
continue-on-error: true
|
|
|
@@ -180,10 +185,10 @@ jobs:
|
|
|
uses: softprops/action-gh-release@v1
|
|
|
with:
|
|
|
files: |
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.RECOVERY_TYPE }}.img
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/${{ env.RECOVERY_TYPE }}.tar
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery-installer.zip
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip
|
|
|
+ ${{ env.FILE_PATH }}/${{ env.RECOVERY_TYPE }}.img
|
|
|
+ ${{ env.FILE_PATH }}/${{ env.RECOVERY_TYPE }}.tar
|
|
|
+ ${{ env.FILE_PATH }}/recovery-installer.zip
|
|
|
+ ${{ env.FILE_PATH }}/OrangeFox*.zip
|
|
|
name: Unofficial OrangeFox for ${{ github.event.inputs.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
|
|
tag_name: ${{ github.run_id }}
|
|
|
body: |
|
|
|
@@ -196,8 +201,8 @@ jobs:
|
|
|
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
|
|
|
with:
|
|
|
files: |
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/obj/PACKAGING/vendor_ramdisk_fragments_intermediates/recovery.*
|
|
|
- OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/ramdisk-recovery.*
|
|
|
+ ${{ env.FILE_PATH }}/obj/PACKAGING/vendor_ramdisk_fragments_intermediates/recovery.*
|
|
|
+ ${{ env.FILE_PATH }}/ramdisk-recovery.*
|
|
|
name: Unofficial OrangeFox for ${{ github.event.inputs.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
|
|
tag_name: ${{ github.run_id }}
|
|
|
body: |
|
|
|
@@ -210,9 +215,9 @@ jobs:
|
|
|
- name: Run LDCheck
|
|
|
run: |
|
|
|
cd tools
|
|
|
- mv -n libneeds ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery/root/
|
|
|
- mv -n ldcheck ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery/root/
|
|
|
- cd ../OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery/root/
|
|
|
+ mv -n libneeds ${{ env.FILE_PATH }}/recovery/root/
|
|
|
+ mv -n ldcheck ${{ env.FILE_PATH }}/recovery/root/
|
|
|
+ cd ..${{ env.FILE_PATH }}/recovery/root/
|
|
|
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ github.event.inputs.LDCHECK }}
|
|
|
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
|
|
continue-on-error: true
|