Skip to content

Commit

Permalink
Edit yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cachiusa committed Aug 21, 2024
1 parent 06f50df commit e5a20c6
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/OrangeFox-Compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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: |
Expand Down

0 comments on commit e5a20c6

Please sign in to comment.