Skip to content

Commit 634024f

Browse files
authored
Create ci.yml
1 parent 596b0d4 commit 634024f

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI 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@v2
15+
- name: Initialize submodules
16+
run: git submodule update --init --recursive
17+
- name: Add GCC to $PATH
18+
run: echo "PATH=$PATH:$HOME/gcc-toolchain/bin" >> $GITHUB_ENV
19+
- name: Cache GCC for Android
20+
id: cache-gcc
21+
uses: actions/cache@v3
22+
with:
23+
path: ~/gcc-toolchain
24+
key: gcc-toolchain
25+
- name: Download GCC for Android
26+
if: steps.cache-gcc.outputs.cache-hit != 'true'
27+
run: |
28+
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9 ~/gcc-toolchain
29+
cd ~/gcc-toolchain
30+
git checkout e9b2ab0932573a0ca90cad11ab75d9619f19c458
31+
- name: Build the bootloader
32+
run: PATH=/home/runner/gcc-toolchain/bin:$PATH bash k6789v1_64-build.sh
33+
- name : Upload bootloader (unsigned)
34+
uses: actions/upload-artifact@v2
35+
with:
36+
name: mimameid_lk-unsigned.img
37+
path: /home/runner/work/droidboot_device_gigaset_gx4/build-k6789v1_64/lk.img

0 commit comments

Comments
 (0)