This repository has been archived by the owner on Jul 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
35 lines (32 loc) · 1.5 KB
/
msm8953.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Build lk2nd(msm8953)
on:
watch:
types: [started]
workflow_dispatch:
jobs:
build:
name: Build lk2nd by ${{ github.actor }}
runs-on: ubuntu-20.04
if: github.event.repository.owner.id == github.event.sender.id
steps:
- uses: actions/checkout@v3
- name: Setup build lk2nd environment
run: |
echo "BUILD_TIME=$(TZ=Asia/Shanghai date "+%Y%m%d%H%M")" >> $GITHUB_ENV
echo "DEVICE=$(echo ${{ env.KERNEL_DEFCONFIG }} | sed 's!vendor/!!;s/_defconfig//;s/_user//;s/-perf//')" >> $GITHUB_ENV
sudo apt-get update
sudo apt-get install git ccache automake flex lzop bison gperf build-essential zip curl zlib1g-dev g++-multilib libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng maven libssl-dev pwgen libswitch-perl policycoreutils minicom libxml-sax-base-perl libxml-simple-perl bc libc6-dev-i386 lib32ncurses5-dev libx11-dev lib32z-dev libgl1-mesa-dev xsltproc unzip gcc-arm-none-eabi device-tree-compiler libfdt-dev python2 python3
chmod a+x scripts/*
- name: Build lk2nd
run: |
make TOOLCHAIN_PREFIX=arm-none-eabi- msm8953-secondary > build.log
- name: Upload lk2nd image
uses: actions/upload-artifact@v3
with:
name: lk2nd-${{ env.BUILD_TIME }}
path: build-msm8953-secondary/lk2nd.img
- name: Upload build log
uses: actions/upload-artifact@v3
with:
name: log-${{ env.BUILD_TIME }}
path: build.log