build.yml 1.1 KB

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