Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Just work lol #261

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -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
13 changes: 6 additions & 7 deletions config.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down