diff --git a/.github/workflows/OrangeFox-Compile.yml b/.github/workflows/OrangeFox-Compile.yml index ed1b9de..7a284f1 100644 --- a/.github/workflows/OrangeFox-Compile.yml +++ b/.github/workflows/OrangeFox-Compile.yml @@ -20,23 +20,23 @@ on: DEVICE_TREE: description: 'OrangeFox Device Tree' required: true - default: 'https://github.com/cd-Crypton/custom_recovery_tree_realme_nashc' + default: 'https://github.com/cachiusa/orangefox_device_xiaomi_veux' DEVICE_TREE_BRANCH: description: 'OrangeFox Device Tree Branch' required: true - default: 'android-12.1' + default: 'staging' DEVICE_PATH: description: 'Specify your Device Path' required: true - default: 'device/realme/nashc' + default: 'device/xiaomi/veux' DEVICE_NAME: description: 'Specify your Device Codename' required: true - default: 'nashc' + default: 'veux' BUILD_TARGET: description: 'Specify your Build Target' required: true - default: 'recovery' + default: 'vendorboot' type: choice options: - boot @@ -96,6 +96,9 @@ jobs: run: | cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }} git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./${{ github.event.inputs.DEVICE_PATH }} + curl -LSs https://gist.github.com/cachiusa/112d89e2abac7e33c87948ff44406a31/raw -o lzma.sh + chmod +x lzma.sh + sed -i '/# clean up, with success code/a cd $ANDROID_BUILD_TOP && ./lzma.sh $ZIP_FILE' vendor/recovery/OrangeFox_A12.sh cd ${{ github.event.inputs.DEVICE_PATH }} echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV @@ -110,8 +113,10 @@ jobs: fi source build/envsetup.sh export ALLOW_MISSING_DEPENDENCIES=true - set -e - lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image + lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && mka adbd vendorbootimage + export TW_VNDR_BOOT=0 + source build/envsetup.sh + lunch twrp_veux-eng && mka adbd bootimage - name: Set Release Properties run: |