move to a different repo

This commit is contained in:
= mlm-games 2024-09-03 07:43:26 +05:30
parent dc8a2f25d9
commit cef5b13562
3 changed files with 0 additions and 129 deletions

View File

@ -1,4 +0,0 @@
FROM docker.io/library/ubuntu:jammy
ENV DEBIAN_FRONTEND noninteractive
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT [ "/entrypoint.sh" ]

View File

@ -1,60 +0,0 @@
name: "OrangeFox Build Action"
author: 'Ragebreaker'
description: "A GitHub action to build OrangeFox recovery for a specified device."
inputs:
MANIFEST_BRANCH:
description: 'OrangeFox Manifest Branch'
required: true
default: '12.1'
type: choice
options:
- 12.1
- 11.0
DEVICE_TREE:
description: 'Custom Recovery Tree'
required: true
default: 'https://github.com/<username>/<repo_name>'
type: string
DEVICE_TREE_BRANCH:
description: 'Custom Recovery Tree Branch (use master if default)'
required: true
default: 'your_branch_name'
type: string
DEVICE_NAME:
description: 'Specify your Device Codename'
required: true
default: '7304X'
type: string
DEVICE_PATH:
description: 'Specify your Device Path (Check the DEVICE_PATH in BoardConfig.mk)'
required: true
default: 'device/device`s_company/Codename'
type: string
BUILD_TARGET:
description: 'Specify your Build Target'
required: true
default: 'recovery'
type: choice
options:
- boot
- recovery
- vendorboot
LDCHECK:
description: 'Use LDCHECK'
required: false
default: 'false'
type: boolean
LDCHECKPATH:
description: 'Path of blobs to check'
required: true
default: 'system/bin/qseecomd'
type: string
runs:
using: 'docker'
image: 'Dockerfile'
branding:
icon: "terminal"
color: "gray-dark"

View File

@ -1,65 +0,0 @@
#!/bin/bash
set -e
# Install necessary packages
sudo apt-get update
sudo apt-get install -y aria2 git
# Clone OrangeFox scripts
git clone https://gitlab.com/OrangeFox/misc/scripts.git
cd scripts
sudo bash setup/android_build_env.sh
# Set up the build environment
MANIFEST_DIR="${GITHUB_WORKSPACE}/OrangeFox"
ORANGEFOX_ROOT="${MANIFEST_DIR}/fox_${INPUT_MANIFEST_BRANCH}"
OUTPUT_DIR="${ORANGEFOX_ROOT}/out/target/product/${INPUT_DEVICE_NAME}"
mkdir -p "${MANIFEST_DIR}"
cd "${MANIFEST_DIR}"
# Configure git
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
# Clone OrangeFox sync repository
git clone https://gitlab.com/OrangeFox/sync.git -b master
cd sync
./orangefox_sync.sh --branch "${INPUT_MANIFEST_BRANCH}" --path "${ORANGEFOX_ROOT}"
# Clone device tree
cd "${ORANGEFOX_ROOT}"
git clone "${INPUT_DEVICE_TREE}" -b "${INPUT_DEVICE_TREE_BRANCH}" "./${INPUT_DEVICE_PATH}"
# Build OrangeFox
cd "${ORANGEFOX_ROOT}"
export USE_CCACHE=1
export CCACHE_EXEC=/usr/bin/ccache
sed -i 's/return sandboxConfig\.working/return false/g' build/soong/ui/build/sandbox_linux.go
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
lunch "twrp_${INPUT_DEVICE_NAME}-eng" && make clean && mka adbd "${INPUT_BUILD_TARGET}image"
# Check if the recovery image exists
img_file=$(find "${OUTPUT_DIR}" -name "${INPUT_BUILD_TARGET}*.img" -print -quit)
zip_file=$(find "${OUTPUT_DIR}" -name "OrangeFox*.zip" -print -quit)
if [ -f "$img_file" ]; then
echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
echo "MD5_IMG=$(md5sum "$img_file" | cut -d ' ' -f 1)" >> $GITHUB_ENV
else
echo "Recovery out directory is empty."
fi
if [ -f "$zip_file" ]; then
echo "CHECK_ZIP_IS_OK=true" >> $GITHUB_ENV
echo "MD5_ZIP=$(md5sum "$zip_file" | cut -d ' ' -f 1)" >> $GITHUB_ENV
else
echo "::warning::The zip file isn't present but make sure the image is from only after 100% completion in build stage"
fi
# Run LDCheck if enabled
if [ "${INPUT_LDCHECK}" = "true" ]; then
echo "Done checking missing dependencies. Review, and reconfigure your tree."
fi