-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
35 lines (31 loc) · 1.32 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: 'LDCHECK-action'
description: 'Run LDCHECK on Android recovery builds'
inputs:
OUTPUT_DIR:
description: 'Output directory of the build'
required: true
LDCHECKPATH:
description: 'Path of blobs to check'
required: true
default: 'recovery/root/system/bin/qseecomd'
runs:
using: "composite"
steps:
- name: Run LDCheck
run: |
# Copy tools to the appropriate location
cp ${{ github.action_path }}/tools/ldcheck ${{ inputs.OUTPUT_DIR }}
cp ${{ github.action_path }}/tools/libneeds ${{ inputs.OUTPUT_DIR }}
# Change to the recovery root directory
cd ${{ inputs.OUTPUT_DIR }}
# Run ldcheck and libneeds
python3 ldcheck -p recovery/root/system/lib64:recovery/root/vendor/lib64:recovery/root/system/lib:recovery/root/vendor/lib:recovery/root/sbin/lib:recovery/root/sbin/lib64 -d recovery/root/${{ inputs.LDCHECKPATH }}
echo "******************************************** Now using libneeds ****************************************"
chmod +x libneeds
./libneeds -p system/lib64:vendor/lib64:system/lib:vendor/lib:sbin -d ${{ inputs.LDCHECKPATH }}
echo "Done checking missing dependencies. Review, and reconfigure your tree."
shell: bash
continue-on-error: true
branding:
icon: terminal
color: green