|
|
@@ -103,17 +103,28 @@ jobs:
|
|
|
- name: Clone Device Tree
|
|
|
run: |
|
|
|
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
|
|
- git clone https://github.com/abrohim0786/Poco-F3-GT-Tree-for-twrp.git -b Poco_12.1 ./device/xiaomi/ares
|
|
|
+ git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device/xiaomi/ares
|
|
|
cd device/xiaomi/ares
|
|
|
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
|
|
|
|
|
- - name: Check Manifest Branch
|
|
|
- uses: haya14busa/action-cond@v1
|
|
|
- id: fox_branch
|
|
|
- with:
|
|
|
- cond: ${{ github.event.inputs.MANIFEST_BRANCH == '11.0' || github.event.inputs.MANIFEST_BRANCH == '12.1' }}
|
|
|
- if_true: lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image
|
|
|
- if_false: lunch omni_${{ github.event.inputs.DEVICE_NAME }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }}image
|
|
|
+ - name: Fix BoardConfig.mk
|
|
|
+ run: |
|
|
|
+ cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/device/xiaomi/ares
|
|
|
+ sed -i 's/mi_ext //g' BoardConfig.mk
|
|
|
+ sed -i 's/BOARD_XIAOMI_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor product mi_ext system_ext/BOARD_XIAOMI_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor product system_ext/g' BoardConfig.mk
|
|
|
+
|
|
|
+ - name: Add TeamWin Dependencies
|
|
|
+ run: |
|
|
|
+ mkdir -p ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/.repo/local_manifests
|
|
|
+ cat > ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/.repo/local_manifests/teamwin.xml <<EOF
|
|
|
+ <?xml version="1.0" encoding="UTF-8"?>
|
|
|
+ <manifest>
|
|
|
+ <project name="TeamWin/android_bootable_recovery" path="bootable/recovery" remote="github" revision="android-12.1" />
|
|
|
+ <project name="TeamWin/android_system_vold" path="system/vold" remote="github" revision="android-12.1" />
|
|
|
+ </manifest>
|
|
|
+ EOF
|
|
|
+ cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
|
|
+ repo sync -c --force-sync --no-clone-bundle --no-tags -j$(nproc --all)
|
|
|
|
|
|
- name: Deep Clean Recovery Intermediate Files
|
|
|
run: |
|
|
|
@@ -130,12 +141,13 @@ jobs:
|
|
|
make clean
|
|
|
source build/envsetup.sh
|
|
|
export ALLOW_MISSING_DEPENDENCIES=true
|
|
|
- lunch twrp_ares-eng
|
|
|
- mka adbd bootimage
|
|
|
+ export LC_ALL=C
|
|
|
+ lunch twrp_${{ github.event.inputs.DEVICE_NAME }}-eng
|
|
|
+ m bootimage
|
|
|
set -e
|
|
|
- ${{ steps.fox_branch.outputs.value }}
|
|
|
|
|
|
- - name: Set Build Date # Output will be use in Release
|
|
|
+ # Rest of your existing steps remain the same...
|
|
|
+ - name: Set Build Date
|
|
|
run: |
|
|
|
echo "BUILD_DATE=$(date +%Y%m%d)" >> $GITHUB_ENV
|
|
|
DEVICE_TREE_URL="${{ github.event.inputs.DEVICE_TREE }}"
|
|
|
@@ -238,3 +250,4 @@ jobs:
|
|
|
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
|
|
|
+
|