Renaming github.event.inputs.*
to inputs.*
As the context of `inputs.*` has already been provided, we no longer require use `github.event.inputs.*`.
This commit is contained in:
parent
9cac4a7d2d
commit
a5fae08d40
58
.github/workflows/OrangeFox-OFRP.yml
vendored
58
.github/workflows/OrangeFox-OFRP.yml
vendored
@ -59,10 +59,10 @@ jobs:
|
||||
- name: Display Inputs
|
||||
run: |
|
||||
echo "Displaying variables/inputs."
|
||||
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"
|
||||
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"
|
||||
|
||||
- name: Clean-up
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
@ -86,28 +86,28 @@ jobs:
|
||||
git config --global user.name "lazycodebuilder"
|
||||
git config --global user.email "154446636+lazycodebuilder@users.noreply.github.com"
|
||||
git clone https://gitlab.com/OrangeFox/sync.git
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '12.1' ]; then
|
||||
echo "Sync fox_${{ github.event.inputs.MANIFEST_BRANCH }} branch"
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ inputs.MANIFEST_BRANCH }} == '12.1' ]; then
|
||||
echo "Sync fox_${{ inputs.MANIFEST_BRANCH }} branch"
|
||||
echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV
|
||||
cd sync
|
||||
./orangefox_sync.sh --branch ${{ github.event.inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
./orangefox_sync.sh --branch ${{ inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}
|
||||
else
|
||||
echo "Sync legacy fox_${{ github.event.inputs.MANIFEST_BRANCH }} branch"
|
||||
echo "Sync legacy fox_${{ inputs.MANIFEST_BRANCH }} branch"
|
||||
echo "CHECK_LEGACY_BRANCH=true" >> $GITHUB_ENV
|
||||
cd sync/legacy
|
||||
./orangefox_sync_legacy.sh --branch ${{ github.event.inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
./orangefox_sync_legacy.sh --branch ${{ inputs.MANIFEST_BRANCH }} --path ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}
|
||||
fi
|
||||
|
||||
- name: Clone Device Tree
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}
|
||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd device_tree
|
||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
- name: Extracting variables from .mk file
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/device_tree
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/device_tree
|
||||
# Initialize variables
|
||||
DEVICE_MAKEFILE=""
|
||||
DEVICE_DIRECTORY=""
|
||||
@ -144,15 +144,15 @@ jobs:
|
||||
|
||||
- name: Building OrangeFox
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}
|
||||
set +e
|
||||
source build/envsetup.sh
|
||||
export ALLOW_MISSING_DEPENDENCIES=true
|
||||
set -e
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == '12.1' ]; then
|
||||
lunch twrp_${{ env.DEVICE_NAME }}-eng && make clean && mka adbd ${{ github.event.inputs.BUILD_TARGET }}image
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == '11.0' ] || [ ${{ inputs.MANIFEST_BRANCH }} == '12.1' ]; then
|
||||
lunch twrp_${{ env.DEVICE_NAME }}-eng && make clean && mka adbd ${{ inputs.BUILD_TARGET }}image
|
||||
else
|
||||
lunch omni_${{ env.DEVICE_NAME }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }}image
|
||||
lunch omni_${{ env.DEVICE_NAME }}-eng && make clean && mka ${{ inputs.BUILD_TARGET }}image
|
||||
fi
|
||||
|
||||
- name: Set Build Date # For Build Date Info, currently using Asia/Manila
|
||||
@ -161,7 +161,7 @@ jobs:
|
||||
|
||||
- name: Check if Recovery Exist
|
||||
run: |
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
cd ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}
|
||||
if [ -f out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img ]; then
|
||||
echo "CHECK_IMG_IS_OK=true" >> $GITHUB_ENV
|
||||
echo "MD5_IMG=$(md5sum out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img | cut -d ' ' -f 1)" >> $GITHUB_ENV
|
||||
@ -180,26 +180,26 @@ jobs:
|
||||
uses: softprops/action-gh-release@master
|
||||
with:
|
||||
files: |
|
||||
OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img
|
||||
OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img.tar
|
||||
OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.zip
|
||||
OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/ramdisk-recovery.*
|
||||
OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img
|
||||
OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.img.tar
|
||||
OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/OrangeFox*.zip
|
||||
OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/ramdisk-recovery.*
|
||||
name: Unofficial OrangeFox for ${{ env.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
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.
|
||||
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.
|
||||
MD5 (img): ${{ env.MD5_IMG }}
|
||||
MD5 (zip): ${{ env.MD5_ZIP }}
|
||||
|
||||
- name: Run LDCheck
|
||||
if: github.event.inputs.LDCHECK == 'true'
|
||||
if: inputs.LDCHECK == 'true'
|
||||
run: |
|
||||
cd tools
|
||||
mv -n libneeds ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
mv -n ldcheck ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
cd ../OrangeFox/fox_${{ github.event.inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ github.event.inputs.LDCHECKPATH }}
|
||||
mv -n libneeds ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
mv -n ldcheck ${GITHUB_WORKSPACE}/OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root/
|
||||
cd ../OrangeFox/fox_${{ inputs.MANIFEST_BRANCH }}/out/target/product/${{ env.DEVICE_NAME }}/recovery/root
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
||||
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
||||
continue-on-error: true
|
||||
|
26
.github/workflows/PitchBlack-PBRP.yml
vendored
26
.github/workflows/PitchBlack-PBRP.yml
vendored
@ -60,10 +60,10 @@ jobs:
|
||||
- name: Display Inputs
|
||||
run: |
|
||||
echo "Displaying variables/inputs."
|
||||
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 }}"
|
||||
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 }}"
|
||||
|
||||
- name: Cleanup
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
@ -75,7 +75,7 @@ jobs:
|
||||
|
||||
- name: Check Manifest Branch
|
||||
run: |
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'android-11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'android-12.1' ]; then
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == 'android-11.0' ] || [ ${{ inputs.MANIFEST_BRANCH }} == 'android-12.1' ]; then
|
||||
echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV
|
||||
else
|
||||
echo "CHECK_LEGACY_BRANCH=true" >> $GITHUB_ENV
|
||||
@ -106,7 +106,7 @@ jobs:
|
||||
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 https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
repo init --depth=1 -u https://github.com/PitchBlackRecoveryProject/manifest_pb.git -b ${{ inputs.MANIFEST_BRANCH }}
|
||||
|
||||
- name: Repo Sync
|
||||
run: |
|
||||
@ -116,7 +116,7 @@ jobs:
|
||||
- name: Clone Device Tree
|
||||
run: |
|
||||
cd android-recovery
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd device_tree
|
||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
@ -162,7 +162,7 @@ jobs:
|
||||
cd android-recovery
|
||||
source build/envsetup.sh
|
||||
export ALLOW_MISSING_DEPENDENCIES=true
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka ${{ github.event.inputs.BUILD_TARGET }}
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && mka ${{ inputs.BUILD_TARGET }}
|
||||
|
||||
- name: Check Build Makefile
|
||||
run: |
|
||||
@ -189,17 +189,17 @@ jobs:
|
||||
name: Unofficial PBRP for ${{ env.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
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.
|
||||
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.
|
||||
|
||||
- name: Run LDCheck
|
||||
if: github.event.inputs.LDCHECK == 'true'
|
||||
if: 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 ${{ github.event.inputs.LDCHECKPATH }}
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
||||
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
||||
continue-on-error: true
|
||||
|
32
.github/workflows/SkyHawk-SHRP.yml
vendored
32
.github/workflows/SkyHawk-SHRP.yml
vendored
@ -58,10 +58,10 @@ jobs:
|
||||
- name: Display Inputs
|
||||
run: |
|
||||
echo "Displaying variables/inputs."
|
||||
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"
|
||||
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"
|
||||
|
||||
- name: Cleanup
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
@ -73,7 +73,7 @@ jobs:
|
||||
|
||||
- name: Check Manifest Branch
|
||||
run: |
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'v3_11.0' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'shrp-12.1' ]; then
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == 'v3_11.0' ] || [ ${{ inputs.MANIFEST_BRANCH }} == 'shrp-12.1' ]; then
|
||||
echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV
|
||||
else
|
||||
echo "CHECK_LEGACY_BRANCH=true" >> $GITHUB_ENV
|
||||
@ -104,7 +104,7 @@ jobs:
|
||||
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 ${{ github.event.inputs.MANIFEST }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
repo init --depth=1 -u ${{ inputs.MANIFEST }} -b ${{ inputs.MANIFEST_BRANCH }}
|
||||
|
||||
- name: Repo Sync
|
||||
run: |
|
||||
@ -114,7 +114,7 @@ jobs:
|
||||
- name: Clone Device Tree
|
||||
run: |
|
||||
cd android-recovery
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd device_tree
|
||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
@ -160,14 +160,14 @@ jobs:
|
||||
cd android-recovery
|
||||
source build/envsetup.sh
|
||||
export ALLOW_MISSING_DEPENDENCIES=true
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && mka ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
|
||||
echo "Done building your ${{ github.event.inputs.BUILD_TARGET }}.img"
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && mka ${{ inputs.BUILD_TARGET }}image -j$(nproc --all)
|
||||
echo "Done building your ${{ inputs.BUILD_TARGET }}.img"
|
||||
|
||||
- name: Set build target for upload
|
||||
run: |
|
||||
if [ ${{ github.event.inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
if [ ${{ inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
echo "BUILD_TARGET_NAME=recovery" >> $GITHUB_ENV
|
||||
elif [ ${{ github.event.inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
elif [ ${{ inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
echo "BUILD_TARGET_NAME=boot" >> $GITHUB_ENV
|
||||
else
|
||||
echo "BUILD_TARGET_NAME=vendor_boot" >> $GITHUB_ENV
|
||||
@ -187,17 +187,17 @@ jobs:
|
||||
name: Unofficial SHRP For ${{ env.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
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.
|
||||
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.
|
||||
|
||||
- name: Run LDCheck
|
||||
if: github.event.inputs.LDCHECK == 'true'
|
||||
if: 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 ${{ github.event.inputs.LDCHECKPATH }}
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
||||
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
||||
continue-on-error: true
|
||||
|
32
.github/workflows/TeamWin-TWRP.yml
vendored
32
.github/workflows/TeamWin-TWRP.yml
vendored
@ -62,10 +62,10 @@ jobs:
|
||||
- name: Display Inputs
|
||||
run: |
|
||||
echo "Displaying variables/inputs."
|
||||
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"
|
||||
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"
|
||||
|
||||
- name: Cleanup
|
||||
uses: rokibhasansagar/slimhub_actions@main
|
||||
@ -77,7 +77,7 @@ jobs:
|
||||
|
||||
- name: Check Manifest Branch
|
||||
run: |
|
||||
if [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'twrp-11' ] || [ ${{ github.event.inputs.MANIFEST_BRANCH }} == 'twrp-12.1' ]; then
|
||||
if [ ${{ inputs.MANIFEST_BRANCH }} == 'twrp-11' ] || [ ${{ inputs.MANIFEST_BRANCH }} == 'twrp-12.1' ]; then
|
||||
echo "MANIFEST=https://github.com/minimal-manifest-twrp/platform_manifest_twrp_aosp.git" >> $GITHUB_ENV
|
||||
echo "CHECK_LEGACY_BRANCH=false" >> $GITHUB_ENV
|
||||
else
|
||||
@ -110,7 +110,7 @@ jobs:
|
||||
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 ${{ env.MANIFEST }} -b ${{ github.event.inputs.MANIFEST_BRANCH }}
|
||||
repo init --depth=1 -u ${{ env.MANIFEST }} -b ${{ inputs.MANIFEST_BRANCH }}
|
||||
|
||||
- name: Repo Sync
|
||||
run: |
|
||||
@ -120,7 +120,7 @@ jobs:
|
||||
- name: Clone Device Tree
|
||||
run: |
|
||||
cd android-recovery
|
||||
git clone ${{ github.event.inputs.DEVICE_TREE }} -b ${{ github.event.inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
git clone ${{ inputs.DEVICE_TREE }} -b ${{ inputs.DEVICE_TREE_BRANCH }} ./device_tree
|
||||
cd device_tree
|
||||
echo "COMMIT_ID=$(git rev-parse HEAD)" >> $GITHUB_ENV
|
||||
|
||||
@ -166,14 +166,14 @@ jobs:
|
||||
cd android-recovery
|
||||
source build/envsetup.sh
|
||||
export ALLOW_MISSING_DEPENDENCIES=true
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && make ${{ github.event.inputs.BUILD_TARGET }}image -j$(nproc --all)
|
||||
echo "Done building your ${{ github.event.inputs.BUILD_TARGET }}.img"
|
||||
lunch ${{ env.DEVICE_MAKEFILE }}-eng && make clean && make ${{ inputs.BUILD_TARGET }}image -j$(nproc --all)
|
||||
echo "Done building your ${{ inputs.BUILD_TARGET }}.img"
|
||||
|
||||
- name: Set build target for upload
|
||||
run: |
|
||||
if [ ${{ github.event.inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
if [ ${{ inputs.BUILD_TARGET }} == 'recovery' ]; then
|
||||
echo "BUILD_TARGET_NAME=recovery" >> $GITHUB_ENV
|
||||
elif [ ${{ github.event.inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
elif [ ${{ inputs.BUILD_TARGET }} == 'boot' ]; then
|
||||
echo "BUILD_TARGET_NAME=boot" >> $GITHUB_ENV
|
||||
else
|
||||
echo "BUILD_TARGET_NAME=vendor_boot" >> $GITHUB_ENV
|
||||
@ -193,17 +193,17 @@ jobs:
|
||||
name: Unofficial TWRP for ${{ env.DEVICE_NAME }} // ${{ env.BUILD_DATE }}
|
||||
tag_name: ${{ github.run_id }}
|
||||
body: |
|
||||
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.
|
||||
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.
|
||||
|
||||
- name: Run LDCheck
|
||||
if: github.event.inputs.LDCHECK == 'true'
|
||||
if: 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 ${{ github.event.inputs.LDCHECKPATH }}
|
||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
||||
echo "Done checking missing dependencies. Review, and reconfigure your tree."
|
||||
continue-on-error: true
|
||||
|
Loading…
Reference in New Issue
Block a user