Skip to content

Update ci.yml

Update ci.yml #12

Workflow file for this run

name: CI workflow
on:
push:
pull_request:
workflow_dispatch:
jobs:
lk-build:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Initialize submodules
run: git submodule update --init --recursive
- name: Add GCC to $PATH
run: echo "PATH=$PATH:$HOME/gcc-toolchain/bin" >> $GITHUB_ENV
- name: Cache GCC for Android
id: cache-gcc
uses: actions/cache@v3
with:
path: ~/gcc-toolchain
key: gcc-toolchain-dualarch
- name: Download GCC for Android
if: steps.cache-gcc.outputs.cache-hit != 'true'
run: |
mkdir ~/gcc-toolchain
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 ~/gcc-toolchain/arm32
cd ~/gcc-toolchain/arm32
git checkout e9b2ab0932573a0ca90cad11ab75d9619f19c458
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9 ~/gcc-toolchain/arm64
cd ~/gcc-toolchain/arm64
git checkout 22f053ccdfd0d73aafcceff3419a5fe3c01e878b
- name: Build the bootloader
run: PATH=/home/runner/gcc-toolchain/arm32/bin:/home/runner/gcc-toolchain/arm64/bin:$PATH bash k6789v1_64-build.sh
- name : Upload bootloader (unsigned)
uses: actions/upload-artifact@v4
with:
name: gx4_lk-unsigned.img
path: /home/runner/work/droidboot_device_gigaset_gx4/droidboot_device_gigaset_gx4/build-k6789v1_64/lk.img