lk: add build workflow #9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build workflow | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lk-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v4 | |
- name: Install pyhton2 | |
run: sudo apt-get install python2 | |
- name: Cache GCC for Android | |
id: cache-gcc | |
uses: actions/cache@v4 | |
with: | |
path: ~/gcc-toolchain | |
key: gcc-toolchain | |
- name: Download GCC for Android | |
if: steps.cache-gcc.outputs.cache-hit != 'true' | |
run: | | |
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 ~/gcc-toolchain | |
cd ~/gcc-toolchain | |
git checkout e9b2ab0932573a0ca90cad11ab75d9619f19c458 | |
- name: Build the bootloader | |
run: | | |
export python=python2 | |
touch ./main_dtb_header.bin # no dtb is required for X5 | |
TOOLCHAIN_PREFIX=~/gcc-toolchain/bin/arm-linux-androideabi- make X5 | |
- name : Upload bootloader | |
uses: actions/upload-artifact@v4 | |
with: | |
name: X5_lk-signed | |
path: /home/runner/work/lk/lk/build-X5/lk-sign.img |