Delete Testing.yml
This commit is contained in:
@@ -1,126 +0,0 @@
|
||||
name: Recovery Builder - ORRP Testing 2
|
||||
|
||||
# Credits to:
|
||||
# https://github.com/that1 for ldcheck and libneeds script
|
||||
# https://github.com/TeamWin for QCom' Decryption Guide
|
||||
# https://github.com/minimal-manifest-twrp for TWRP Manifest
|
||||
# https://github.com/azwhikaru for Recovery Builder Template
|
||||
# And all Contributors in every repositories I used
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
MANIFEST_URL:
|
||||
description: 'Manifest'
|
||||
required: true
|
||||
default: ''
|
||||
type: choice
|
||||
options:
|
||||
- https://gitlab.com/OrangeFox/sync.git
|
||||
MANIFEST_BRANCH:
|
||||
description: 'Manifest Branch'
|
||||
required: true
|
||||
default: ''
|
||||
type: choice
|
||||
options:
|
||||
- 12.1
|
||||
- 11.0
|
||||
DEVICE_TREE:
|
||||
description: 'Custom Recovery Tree'
|
||||
required: true
|
||||
default: 'https://github.com/cd-Crypton/custom_recovery_tree_cannong'
|
||||
DEVICE_TREE_BRANCH:
|
||||
description: 'Custom Recovery Tree Branch'
|
||||
required: true
|
||||
default: 'orangefox-12.1'
|
||||
DEVICE_PATH:
|
||||
description: 'Specify your device path.'
|
||||
required: true
|
||||
default: 'device/xiaomi/cannong'
|
||||
DEVICE_NAME:
|
||||
description: 'Specify your Device Codename.'
|
||||
required: true
|
||||
default: 'cannong'
|
||||
MAKEFILE_NAME:
|
||||
description: 'Specify your twrp/omni_codename'
|
||||
required: true
|
||||
default: 'twrp_cannong'
|
||||
BUILD_TARGET:
|
||||
description: 'Specify your Build Target'
|
||||
required: true
|
||||
default: 'recovery'
|
||||
type: choice
|
||||
options:
|
||||
- boot
|
||||
- recovery
|
||||
- vendor_boot
|
||||
FILE_TO_CHECK:
|
||||
description: 'Specify which libs to check'
|
||||
required: true
|
||||
default: 'system/bin/qseecomd'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- name: Check Out
|
||||
uses: actions/checkout@v3.1.0
|
||||
|
||||
- name: Cleanup
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
|
||||
- name: Prepare the environment
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt -y upgrade
|
||||
sudo apt -y install git aria2
|
||||
|
||||
- name: Install OpenJDK
|
||||
uses: actions/setup-java@v3.5.1
|
||||
with:
|
||||
distribution: 'zulu'
|
||||
java-version: '8'
|
||||
|
||||
- name: Set Swap Space
|
||||
uses: pierotofy/set-swap-space@master
|
||||
with:
|
||||
swap-size-gb: 12
|
||||
|
||||
- name: Run Everything
|
||||
run: |
|
||||
git config --global user.name "Carlo Dandan"
|
||||
git config --global user.email "jasminecarlo01@gmail.com"
|
||||
git clone https://gitlab.com/OrangeFox/misc/scripts
|
||||
cd scripts
|
||||
sudo bash setup/android_build_env.sh
|
||||
cd ..
|
||||
mkdir OrangeFox
|
||||
cd OrangeFox
|
||||
git clone https://gitlab.com/OrangeFox/sync.git
|
||||
cd sync
|
||||
sudo bash orangefox_sync.sh --branch ${{ github.event.inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
cd ..
|
||||
cd ..
|
||||
cd fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ${{ github.event.inputs.DEVICE_PATH }}
|
||||
source build/envsetup.sh
|
||||
lunch ${{ github.event.inputs.MAKEFILE_NAME }}-eng && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image
|
||||
|
||||
- name: Upload to Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
with:
|
||||
files: ${GITHUB_WORKSPACE}/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/OrangeFox*.zip
|
||||
name: unofficial-${{ github.event.inputs.MANIFEST_BRANCH }}-${{ github.event.inputs.DEVICE_NAME }}-${{ github.event.inputs.BUILD_TARGET }}-${{ github.run_id }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
Manifest: ${{ github.event.inputs.MANIFEST_URL }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
Device: unofficial-${{ github.event.inputs.MANIFEST_BRANCH }}-${{ github.event.inputs.DEVICE_NAME }}.img
|
||||
|
||||
- name: Run LDCheck
|
||||
run: |
|
||||
cd workspace/out/target/product/${{ github.event.inputs.DEVICE_NAME }}/recovery/root
|
||||
python3 ldcheck -p system/lib64:vendor/lib64 -d ${{ github.event.inputs.FILE_TO_CHECK }}
|
||||
continue-on-error: true
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user