Update SkyHawk-SHRP.yml
Would want to touch ldcheck as i dont know how it helps/works
This commit is contained in:
parent
2e811956ae
commit
131183b469
59
.github/workflows/SkyHawk-SHRP.yml
vendored
59
.github/workflows/SkyHawk-SHRP.yml
vendored
@ -31,9 +31,9 @@ on:
|
||||
default: 'recovery'
|
||||
type: choice
|
||||
options:
|
||||
- boot
|
||||
- recovery
|
||||
- vendorboot
|
||||
- bootimage
|
||||
- recoveryimage
|
||||
- vendorbootimage
|
||||
LDCHECK:
|
||||
description: 'Use LDCHECK'
|
||||
required: false
|
||||
@ -50,6 +50,8 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
if: github.event.repository.owner.id == github.event.sender.id
|
||||
env:
|
||||
ANDROID_ROOT: ${{ github.workspace }}/android-recovery
|
||||
OUT_DIR: ${{ github.workspace }}/android-recovery/out/target/product
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
permissions:
|
||||
contents: write
|
||||
@ -60,10 +62,10 @@ jobs:
|
||||
- name: Display Inputs
|
||||
run: |
|
||||
echo "Displaying variables/inputs."
|
||||
echo "Manifest Branch: ${{ inputs.MANIFEST_BRANCH }}"
|
||||
echo "Device Tree: ${{ inputs.DEVICE_TREE }}"
|
||||
echo "Device Branch: ${{ inputs.DEVICE_TREE_BRANCH }}"
|
||||
echo "Build Target: ${{ inputs.BUILD_TARGET }}image"
|
||||
echo "Manifest Branch: ${{ github.event.inputs.MANIFEST_BRANCH }}"
|
||||
echo "Device Tree: ${{ github.event.inputs.DEVICE_TREE }}"
|
||||
echo "Device Branch: ${{ github.event.inputs.DEVICE_TREE_BRANCH }}"
|
||||
echo "Build Target: ${{ github.event.inputs.BUILD_TARGET }}image"
|
||||
|
||||
- name: Cleanup
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
@ -75,7 +77,7 @@ jobs:
|
||||
|
||||
- name: Check Manifest Branch
|
||||
run: |
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == 'v3_11.0' ] || [ ${{ inputs.MANIFEST_BRANCH }} == 'shrp-12.1' ]; then
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'v3_11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'shrp-12.1' ]; then
|
||||
echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV
|
||||
else
|
||||
echo "CHECK_LEGACY_BRANCH=true" >> $GITHUB_ENV
|
||||
@ -83,9 +85,12 @@ jobs:
|
||||
|
||||
- name: Prepare the environment
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt -y upgrade
|
||||
sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libtinfo5 libgflags-dev libncurses5 python3
|
||||
sudo apt update && sudo apt -y upgrade && sudo apt -y install gperf gcc-multilib gcc-10-multilib g++-multilib g++-10-multilib libc6-dev lib32ncurses5-dev x11proto-core-dev libx11-dev tree lib32z-dev libgl1-mesa-dev libxml2-utils xsltproc bc ccache lib32readline-dev lib32z1-dev liblz4-tool libncurses5-dev libsdl1.2-dev libwxgtk3.0-gtk3-dev libxml2 lzop pngcrush schedtool squashfs-tools imagemagick libbz2-dev lzma ncftp qemu-user-static libstdc++-10-dev libtinfo5 libgflags-dev libncurses5 python3
|
||||
|
||||
- name: Setup ccache
|
||||
uses: hendrikmuhs/ccache-action@v1.2
|
||||
with:
|
||||
max-size: "10G"
|
||||
|
||||
- name: Install OpenJDK
|
||||
uses: actions/setup-java@v4
|
||||
@ -104,9 +109,9 @@ jobs:
|
||||
run: |
|
||||
mkdir android-recovery
|
||||
cd android-recovery
|
||||
git config --global user.name "lazycodebuilder"
|
||||
git config --global user.email "154446636+lazycodebuilder@users.noreply.github.com"
|
||||
repo init --depth=1 -u ${{ inputs.MANIFEST }} -b ${{ inputs.MANIFEST_BRANCH }}
|
||||
git config --global user.name "${{ github.actor }}"
|
||||
git config --global user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
|
||||
repo init --depth=1 -u ${{ github.event.inputs.MANIFEST }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
|
||||
- name: Repo Sync
|
||||
run: |
|
||||
@ -116,7 +121,7 @@ jobs:
|
||||
- name: Clone Device Tree
|
||||
run: |
|
||||
cd android-recovery
|
||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd device_tree
|
||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
@ -162,14 +167,14 @@ jobs:
|
||||
cd android-recovery
|
||||
source build/envsetup.sh
|
||||
export ALLOW_MISSING_DEPENDENCIES=true
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && mka ${{ inputs.BUILD_TARGET }}image -j$(nproc --all)
|
||||
echo "Done building your ${{ inputs.BUILD_TARGET }}.img"
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }} -j$(nproc --all)
|
||||
echo "Done building your ${{ github.event.inputs.BUILD_TARGET }}.img"
|
||||
|
||||
- name: Set build target for upload
|
||||
run: |
|
||||
if [ ${{ inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
if [ ${{ github.event.inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
echo "BUILD_TARGET_NAME=recovery" >> $GITHUB_ENV
|
||||
elif [ ${{ inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
elif [ ${{ github.event.inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
echo "BUILD_TARGET_NAME=boot" >> $GITHUB_ENV
|
||||
else
|
||||
echo "BUILD_TARGET_NAME=vendor_boot" >> $GITHUB_ENV
|
||||
@ -183,23 +188,23 @@ jobs:
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
files: |
|
||||
android-recovery/out/target/product/${{ env.DEVICE_NAME }}/${{ env.BUILD_TARGET_NAME }}.img
|
||||
android-recovery/out/target/product/${{ env.DEVICE_NAME }}/SHRP*.zip
|
||||
android-recovery/out/target/product/${{ env.DEVICE_NAME }}/ramdisk-recovery.*
|
||||
${{ env.OUT_DIR }}/${{ env.DEVICE_NAME }}/${{ env.BUILD_TARGET_NAME }}.img
|
||||
${{ env.OUT_DIR }}/${{ env.DEVICE_NAME }}/SHRP*.zip
|
||||
${{ env.OUT_DIR }}/${{ env.DEVICE_NAME }}/ramdisk-recovery.*
|
||||
name: Unofficial SHRP For ${{ env.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
Build: ${{ inputs.MANIFEST_BRANCH }}
|
||||
Device: [Device Tree/Branch](${{ inputs.DEVICE_TREE }}/tree/${{ inputs.DEVICE_TREE_BRANCH }})
|
||||
Commit: Most recent [commit](${{ inputs.DEVICE_TREE }}/commit/${{ env.COMMIT_ID }}) during building.
|
||||
Build: ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
Device: [Device Tree/Branch](${{ github.event.inputs.DEVICE_TREE }}/tree/${{ github.event.inputs.DEVICE_TREE_BRANCH }})
|
||||
Commit: Most recent [commit](${{ github.event.inputs.DEVICE_TREE }}/commit/${{ env.COMMIT_ID }}) during building.
|
||||
|
||||
- name: Run LDCheck
|
||||
if: inputs.LDCHECK == 'true'
|
||||
if: github.event.inputs.LDCHECK == 'true'
|
||||
run: |
|
||||
cd tools
|
||||
mv -n libneeds ${GITHUB_WORKSPACE}/android-recovery/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
mv -n ldcheck ${GITHUB_WORKSPACE}/android-recovery/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
cd ../android-recovery/out/target/product/${{ env.DEVICE_NAME }}/recovery/root
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ github.event.inputs.LDCHECKPATH }}
|
||||
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
||||
continue-on-error: true
|
||||
|
Loading…
Reference in New Issue
Block a user