From b840f69e74728902f6ecc0c2d6baa8bbbed561b5 Mon Sep 17 00:00:00 2001 From: Asce-XOX Date: Wed, 25 Oct 2023 01:04:17 +0530 Subject: [PATCH 01/11] added twrp lancelot --- config.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/config.sh b/config.sh index bd676c0a..f2dedcd8 100644 --- a/config.sh +++ b/config.sh @@ -1,10 +1,10 @@ #!/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="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 +17,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 From 0dca0121c7d568dda6ce704ac036717faeb5415b Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Wed, 25 Oct 2023 19:55:46 +0530 Subject: [PATCH 02/11] Update config.sh --- config.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/config.sh b/config.sh index f2dedcd8..263145d8 100644 --- a/config.sh +++ b/config.sh @@ -1,5 +1,6 @@ #!/bin/bash +#bruh...... # Device export FOX_BRANCH="11" export DT_LINK="https://github.com/Asce-XOX/android_device_xiaomi_lancelot_twrp.git -b 11" From c2adeccd143f89db224c03d13b9e8d6df4fa7169 Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:08:48 +0530 Subject: [PATCH 03/11] actually fixing workflow --- .github/workflows/blank.yml | 72 +++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 .github/workflows/blank.yml diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 00000000..232f1b0d --- /dev/null +++ b/.github/workflows/blank.yml @@ -0,0 +1,72 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the workflow will run +on: + # Triggers the workflow on push or pull request events but only for the "main" branch + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + + # Runs a single command using the runners shell + - name: Run a one-line script + run: echo Hello, world! + + # Runs a set of commands using the runners shell + - name: Run a multi-line script + run: | + echo Add other actions to build + echo test, and deploy your project. + + + env: + # OrangeFox Sync Repository + FOX_SYNC: https://gitlab.com/OrangeFox/sync.git + + # Config + CONFIG: config.sh + + # Telegram + TG_CHAT_ID: ENCRYPTED[0003e1cf5276424a5b2afb8c6a39f2d830864e8555b37220bd3bf173f3ef5b8769ab98425d96a76adf64b18241c940dd] + TG_TOKEN: ENCRYPTED[03de4105db5d23ec42490965c0a0f79217c1e3366cb152bd9d9a045e22586eba675615e1f08bf1aea3e860d499efde60] + + # Cirrus Specific Vars (Do *NOT* Change) + CIRRUS_SHELL: bash + +task: + name: "Recovery Build" + timeout_in: 120m + container: + image: ghcr.io/sushrut1101/docker:arch + cpu: 8 + memory: 20G + + Checks_script: + - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/checks.sh)" + + Sync_script: + - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/sync.sh)" + + Build_script: + - 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)" From 64e26a329cdbfa8da1d8217a2a52a4ca725f53ab Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Fri, 10 Nov 2023 20:18:04 +0530 Subject: [PATCH 04/11] Update blank.yml --- .github/workflows/blank.yml | 40 +------------------------------------ 1 file changed, 1 insertion(+), 39 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 232f1b0d..7993202d 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,42 +1,4 @@ -# This is a basic workflow to help you get started with Actions - -name: CI - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the "main" branch - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - - # Runs a single command using the runners shell - - name: Run a one-line script - run: echo Hello, world! - - # Runs a set of commands using the runners shell - - name: Run a multi-line script - run: | - echo Add other actions to build - echo test, and deploy your project. - - - env: +env: # OrangeFox Sync Repository FOX_SYNC: https://gitlab.com/OrangeFox/sync.git From c7d905a7edb9bee0a05aacec7b3d611ba4150e24 Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:30:30 +0530 Subject: [PATCH 05/11] hope work flow get work --- .github/workflows/blank.yml | 91 +++++++++++++++++++++++-------------- 1 file changed, 57 insertions(+), 34 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 7993202d..c20e3aa6 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -1,34 +1,57 @@ -env: - # OrangeFox Sync Repository - FOX_SYNC: https://gitlab.com/OrangeFox/sync.git - - # Config - CONFIG: config.sh - - # Telegram - TG_CHAT_ID: ENCRYPTED[0003e1cf5276424a5b2afb8c6a39f2d830864e8555b37220bd3bf173f3ef5b8769ab98425d96a76adf64b18241c940dd] - TG_TOKEN: ENCRYPTED[03de4105db5d23ec42490965c0a0f79217c1e3366cb152bd9d9a045e22586eba675615e1f08bf1aea3e860d499efde60] - - # Cirrus Specific Vars (Do *NOT* Change) - CIRRUS_SHELL: bash - -task: - name: "Recovery Build" - timeout_in: 120m - container: - image: ghcr.io/sushrut1101/docker:arch - cpu: 8 - memory: 20G - - Checks_script: - - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/checks.sh)" - - Sync_script: - - bash -c "$(curl -sL https://raw.githubusercontent.com/OrangeFoxRecovery/OrangeFox-CI/fox/scripts/sync.sh)" - - Build_script: - - 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)" +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 update + sudo apt-get install -y build-essential libncurses5 libncurses5:i386 \ + zlib1g zlib1g:i386 g++-multilib git-core gnupg flex bison gperf \ + build-essential zip curl libc6-dev libncurses5-dev:i386 \ + x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 \ + libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib \ + libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev \ + libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ + libgl1-mesa-dev g++-multilib libc6-dev-i386 \ + lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 \ + libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev \ + g++-multilib libc6-dev-i386 lib32ncurses5-dev \ + x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 \ + libgl1-mesa-glx:i386 libgl1-mesa-dev + + - name: Clone Orange Fox Repository + run: | + git clone https://github.com/OrangeFoxRecovery/manifest.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_codename-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 From 586243ed05ebf1bd9b5508e93346cba60effb2ff Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:35:39 +0530 Subject: [PATCH 06/11] Update blank.yml there was a error causing due to node running in terminal fixed it hope it work --- .github/workflows/blank.yml | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index c20e3aa6..688e0da1 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -21,20 +21,7 @@ jobs: - name: Install Dependencies run: | - sudo apt-get update - sudo apt-get install -y build-essential libncurses5 libncurses5:i386 \ - zlib1g zlib1g:i386 g++-multilib git-core gnupg flex bison gperf \ - build-essential zip curl libc6-dev libncurses5-dev:i386 \ - x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 \ - libgl1-mesa-glx:i386 libgl1-mesa-dev g++-multilib \ - libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev \ - libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ - libgl1-mesa-dev g++-multilib libc6-dev-i386 \ - lib32ncurses5-dev x11proto-core-dev libx11-dev:i386 \ - libreadline6-dev:i386 libgl1-mesa-glx:i386 libgl1-mesa-dev \ - g++-multilib libc6-dev-i386 lib32ncurses5-dev \ - x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 \ - libgl1-mesa-glx:i386 libgl1-mesa-dev + sudo apt-get install 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 - name: Clone Orange Fox Repository run: | @@ -47,7 +34,7 @@ jobs: run: | cd fox . build/envsetup.sh - lunch omni_codename-eng # replace 'codename' with your device codename + lunch omni_lancelot-eng # replace 'codename' with your device codename make recoveryimage - name: Upload Artifact From 28ca8ae872865923b638fd2b5b2ca6f232f9a10f Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 12:47:31 +0530 Subject: [PATCH 07/11] Update blank.yml --- .github/workflows/blank.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 688e0da1..e31407fa 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -21,7 +21,10 @@ jobs: - name: Install Dependencies run: | - sudo apt-get install 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-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 - name: Clone Orange Fox Repository run: | From c6b423bd7bb04bdf4d79fb483a3f2b3cae15083d Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 13:06:02 +0530 Subject: [PATCH 08/11] Update blank.yml --- .github/workflows/blank.yml | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index e31407fa..aeec0910 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -21,18 +21,24 @@ jobs: - 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 + cd ~ + 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://github.com/OrangeFoxRecovery/manifest.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 - + mkdir ~/OrangeFox_sync + cd ~/OrangeFox_sync + git clone https://gitlab.com/OrangeFox/sync.git # (or, using ssh, "git clone git@gitlab.com:OrangeFox/sync.git") + cd ~/OrangeFox_sync/sync/ + ./orangefox_sync.sh --branch 11.0 --path ~/fox_11.1 + cd ~/fox_11.1 # (or whichever directory hosts the synced manifest) + git clone https://github.com/Asce-XOX/android_device_xiaomi_lancelot_twrp.git + + - name: Build Orange Fox run: | cd fox From df316444b6983a5cc44d13d46037d7a7fa3b6614 Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 13:08:38 +0530 Subject: [PATCH 09/11] Update blank.yml --- .github/workflows/blank.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index aeec0910..5b070129 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -30,12 +30,12 @@ jobs: - name: Clone Orange Fox Repository run: | - mkdir ~/OrangeFox_sync - cd ~/OrangeFox_sync + + git clone https://gitlab.com/OrangeFox/sync.git # (or, using ssh, "git clone git@gitlab.com:OrangeFox/sync.git") - cd ~/OrangeFox_sync/sync/ - ./orangefox_sync.sh --branch 11.0 --path ~/fox_11.1 - cd ~/fox_11.1 # (or whichever directory hosts the synced manifest) + + ./orangefox_sync.sh --branch 11.0 + git clone https://github.com/Asce-XOX/android_device_xiaomi_lancelot_twrp.git From 779ce5970eac2bf54ed6b7465371b801f60dcbee Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 13:42:25 +0530 Subject: [PATCH 10/11] Update blank.yml From 5af826a5a723f5d47c04dd574868d94bfddb6100 Mon Sep 17 00:00:00 2001 From: Asce-XOX <143834552+Asce-XOX@users.noreply.github.com> Date: Sat, 11 Nov 2023 14:12:06 +0530 Subject: [PATCH 11/11] Update blank.yml --- .github/workflows/blank.yml | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml index 5b070129..3f03ad83 100644 --- a/.github/workflows/blank.yml +++ b/.github/workflows/blank.yml @@ -21,24 +21,24 @@ jobs: - name: Install Dependencies run: | - cd ~ - 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 + 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 # (or, using ssh, "git clone git@gitlab.com:OrangeFox/sync.git") - - ./orangefox_sync.sh --branch 11.0 - - git clone https://github.com/Asce-XOX/android_device_xiaomi_lancelot_twrp.git - - + 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