diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000..3f03ad83 --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,53 @@ +name: OrangeFox ROM Build + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v2 + + - name: Set up Java + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + + - name: Install Dependencies + run: | + sudo apt-get install -y git-core gnupg flex bison build-essential zip \ + curl zlib1g-dev libc6-dev-i386 libncurses5 x11proto-core-dev \ + libx11-dev lib32z1-dev libgl1-mesa-dev libxml2-utils xsltproc \ + unzip fontconfig + + sudo apt install git aria2 -y + git clone https://gitlab.com/OrangeFox/misc/scripts + cd scripts + sudo bash setup/android_build_env.sh + sudo bash setup/install_android_sdk.sh + + - name: Clone Orange Fox Repository + run: | + git clone https://gitlab.com/OrangeFox/sync.git fox + cd fox + repo init -u https://gitlab.com/OrangeFox/Manifest.git -b fox_10.0 + repo sync -c -j$(nproc --all) --force-sync --no-clone-bundle --no-tags + + - name: Build Orange Fox + run: | + cd fox + . build/envsetup.sh + lunch omni_lancelot-eng # replace 'codename' with your device codename + make recoveryimage + + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: OrangeFox-Recovery + path: out/target/product/codename/recovery.img # replace 'codename' with your device codename diff --git a/config.sh b/config.sh index bd676c0a..263145d8 100644 --- a/config.sh +++ b/config.sh @@ -1,10 +1,11 @@ #!/bin/bash +#bruh...... # Device -export FOX_BRANCH="fox_9.0" -export DT_LINK="https://gitlab.com/OrangeFox/device/beryllium.git -b fox_9.0" +export FOX_BRANCH="11" +export DT_LINK="https://github.com/Asce-XOX/android_device_xiaomi_lancelot_twrp.git -b 11" -export DEVICE="beryllium" +export DEVICE="lancelot" export OEM="xiaomi" # Build Target @@ -17,12 +18,10 @@ export OUTPUT="OrangeFox*.zip" # Additional Dependencies (eg: Kernel Source) # Format: "repo dest" -DEPS=( - "https://github.com/OrangeFoxRecovery/Avatar.git misc" -) + # Extra Command -export EXTRA_CMD="export OF_MAINTAINER=Sushrut1101" +export EXTRA_CMD="export OF_MAINTAINER=Asce||エース°" # Magisk ## Use the Latest Release of Magisk for the OrangeFox addon