File tree 1 file changed +38
-0
lines changed
1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build workflow
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ lk-build :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ - name : Checkout sources
14
+ uses : actions/checkout@v4
15
+ - name : Install pyhton2
16
+ run : sudo apt-get install python2
17
+ - name : Cache GCC for Android
18
+ id : cache-gcc
19
+ uses : actions/cache@v4
20
+ with :
21
+ path : ~/gcc-toolchain
22
+ key : gcc-toolchain
23
+ - name : Download GCC for Android
24
+ if : steps.cache-gcc.outputs.cache-hit != 'true'
25
+ run : |
26
+ git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 ~/gcc-toolchain
27
+ cd ~/gcc-toolchain
28
+ git checkout e9b2ab0932573a0ca90cad11ab75d9619f19c458
29
+ - name : Build the bootloader
30
+ run : |
31
+ export python=python2
32
+ touch ./main_dtb_header.bin # no dtb is required for X5
33
+ TOOLCHAIN_PREFIX=~/gcc-toolchain/bin/arm-linux-androideabi- make X5
34
+ - name : Upload bootloader
35
+ uses : actions/upload-artifact@v4
36
+ with :
37
+ name : X5_lk-signed
38
+ path : /home/runner/work/lk/lk/build-X5/lk-sign.img
You can’t perform that action at this time.
0 commit comments