diff --git a/.cirrus.yml b/.cirrus.yml index 7993202d..cfe3d739 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -1,16 +1,12 @@ env: - # OrangeFox Sync Repository - FOX_SYNC: https://gitlab.com/OrangeFox/sync.git + # OrangeFox Sync Repository + FOX_SYNC: https://gitlab.com/OrangeFox/sync.git - # Config - CONFIG: config.sh + # Config + CONFIG: config.sh - # Telegram - TG_CHAT_ID: ENCRYPTED[0003e1cf5276424a5b2afb8c6a39f2d830864e8555b37220bd3bf173f3ef5b8769ab98425d96a76adf64b18241c940dd] - TG_TOKEN: ENCRYPTED[03de4105db5d23ec42490965c0a0f79217c1e3366cb152bd9d9a045e22586eba675615e1f08bf1aea3e860d499efde60] - - # Cirrus Specific Vars (Do *NOT* Change) - CIRRUS_SHELL: bash + # Cirrus Specific Vars (Do *NOT* Change) + CIRRUS_SHELL: bash task: name: "Recovery Build" @@ -30,5 +26,5 @@ task: - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/build.sh)" Upload_script: - - export TIMEOUT=43200 # Link timeout (in minutes) - - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/upload.sh)" + - export TIMEOUT=43200 + - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/upload.sh)" \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..7fccf620 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,20 @@ +name: OrangeFox Build + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build OrangeFox + run: |FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true + echo "Building OrangeFox for Pixel 10 Pro..." + # This is a placeholder - you'd need to set up the full build environment + echo "FOX_BRANCH=fox_14.1" + echo "DEVICE=blazer" diff --git a/OrangeFox-CI b/OrangeFox-CI new file mode 160000 index 00000000..b5d60dda --- /dev/null +++ b/OrangeFox-CI @@ -0,0 +1 @@ +Subproject commit b5d60dda40ba61017a88c5a125e5411083cb23ea diff --git a/README.md b/README.md index a1f52580..23394d09 100644 --- a/README.md +++ b/README.md @@ -18,3 +18,4 @@ A Free CI to Build OrangeFox Recovery ## Credits - [Sushrut1101](https://github.com/Sushrut1101) - For Making this CI +# Build test diff --git a/config.sh b/config.sh index bd676c0a..7e05a55a 100644 --- a/config.sh +++ b/config.sh @@ -1,18 +1,15 @@ #!/bin/bash # Device -export FOX_BRANCH="fox_9.0" -export DT_LINK="https://gitlab.com/OrangeFox/device/beryllium.git -b fox_9.0" +export FOX_BRANCH="fox_14.1" +export DT_LINK="https://github.com/jsauce454/twrp_device_google_blazer.git -b fox_14.1" -export DEVICE="beryllium" -export OEM="xiaomi" +export DEVICE="blazer" +export OEM="google" # Build Target -## "recoveryimage" - for A-Only Devices without using Vendor Boot -## "bootimage" - for A/B devices without recovery partition (and without vendor boot) -## "vendorbootimage" - for devices Using vendor boot for the recovery ramdisk (Usually for devices shipped with Android 12 or higher) -export TARGET="recoveryimage" - +export TARGET="vendorbootimage" +export TARGET_PRODUCT="twrp_blazer-ap2a-eng" export OUTPUT="OrangeFox*.zip" # Additional Dependencies (eg: Kernel Source) @@ -22,14 +19,28 @@ DEPS=( ) # Extra Command -export EXTRA_CMD="export OF_MAINTAINER=Sushrut1101" +export EXTRA_CMD="export OF_MAINTAINER=LeeGarChat" # Magisk ## Use the Latest Release of Magisk for the OrangeFox addon export OF_USE_LATEST_MAGISK=true +# Android 16 specific +export OF_USE_GREEN_EXTRACTION="true" +export OF_USE_MAGISKBOOT="true" +export OF_USE_MAGISKBOOT_FOR_ALL_PATCHES="true" +export OF_SKIP_MAGISK_DETECTION="true" + +# Android 16 specific flags +export OF_DISABLE_MIUI_SPECIFIC_FEATURES="true" +export OF_QUICK_BACKUP_LIST="" +export OF_USE_TWRP_SAR_DETECT="true" + +# A/B Device +export FOX_AB_DEVICE=1 + # Not Recommended to Change -export SYNC_PATH="$HOME/work" # Full (absolute) path. +export SYNC_PATH="$HOME/fox_14.1" export USE_CCACHE=1 export CCACHE_SIZE="50G" export CCACHE_DIR="$HOME/work/.ccache" diff --git a/scripts/build.sh b/scripts/build.sh index f197823d..6c336c3d 100644 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -94,7 +94,7 @@ fi # Build the Code if [ -z "$J_VAL" ]; then mka -j$(nproc --all) $TARGET || { echo "ERROR: Failed to Build OrangeFox!" && exit 1; } -elif [ "$J_VAL"="0" ]; then +elif [ "$J_VAL" = "0" ]; then mka $TARGET || { echo "ERROR: Failed to Build OrangeFox!" && exit 1; } else mka -j${J_VAL} $TARGET || { echo "ERROR: Failed to Build OrangeFox!" && exit 1; }