Update PBRP-new.yml
This commit is contained in:
parent
421c085f8b
commit
c28cbf5302
41
.github/workflows/PBRP-new.yml
vendored
41
.github/workflows/PBRP-new.yml
vendored
@ -121,11 +121,22 @@ jobs:
|
|||||||
chmod a+x ~/bin/repo
|
chmod a+x ~/bin/repo
|
||||||
sudo ln -sf ~/bin/repo /usr/bin/repo
|
sudo ln -sf ~/bin/repo /usr/bin/repo
|
||||||
|
|
||||||
|
- name: Set Manifest Source
|
||||||
|
run: |
|
||||||
|
ANDROID_VERSION=$(echo "${{ inputs.MANIFEST_BRANCH }}" | cut -d'-' -f2)
|
||||||
|
if (( $(echo "$ANDROID_VERSION < 10.0" | bc -l) )); then
|
||||||
|
echo "MANIFEST_URL=https://github.com/mlm-games/manifest_pb.git" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
echo "MANIFEST_URL=https://github.com/PitchBlackRecoveryProject/manifest_pb.git" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Initialize Repo
|
- name: Initialize Repo
|
||||||
run: |
|
run: |
|
||||||
mkdir -p android-recovery
|
mkdir -p android-recovery
|
||||||
cd android-recovery
|
cd android-recovery
|
||||||
repo init --depth=1 -u https://github.com/mlm-games/manifest_pb.git -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 ${{ env.MANIFEST_URL }} -b ${{ inputs.MANIFEST_BRANCH }}
|
||||||
|
|
||||||
- name: Repo Sync
|
- name: Repo Sync
|
||||||
run: |
|
run: |
|
||||||
@ -215,29 +226,11 @@ jobs:
|
|||||||
prerelease: true
|
prerelease: true
|
||||||
draft: false
|
draft: false
|
||||||
|
|
||||||
- name: Run LDCheck
|
- name: Run LDCHECK
|
||||||
if: inputs.LDCHECK == true
|
uses: mlm-games/ldcheck-action@main
|
||||||
run: |
|
with:
|
||||||
cd android-recovery
|
OUTPUT_DIR: ${{ env.OUTPUT_DIR }}
|
||||||
if [ ! -d "tools" ]; then
|
LDCHECKPATH: 'vendor/bin/teei_daemon'
|
||||||
echo "::error::Tools directory not found"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Setup LDCheck environment
|
|
||||||
RECOVERY_ROOT="${OUTPUT_DIR}/${inputs.DEVICE_NAME}/recovery/root"
|
|
||||||
mkdir -p "${RECOVERY_ROOT}"
|
|
||||||
|
|
||||||
# Copy required files
|
|
||||||
cp tools/libneeds "${RECOVERY_ROOT}/"
|
|
||||||
cp tools/ldcheck "${RECOVERY_ROOT}/"
|
|
||||||
|
|
||||||
# Run LDCheck
|
|
||||||
cd "${RECOVERY_ROOT}"
|
|
||||||
python3 ldcheck -p system/lib64:vendor/lib64:system/lib:vendor/lib -d ${{ inputs.LDCHECKPATH }}
|
|
||||||
|
|
||||||
echo "LDCheck completed. Please review the results and update your device tree accordingly."
|
|
||||||
continue-on-error: true
|
|
||||||
|
|
||||||
- name: Calculate Build Time
|
- name: Calculate Build Time
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user