forked from msm8916-mainline/lk2nd
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (38 loc) · 1.12 KB
/
lk2nd.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
36
37
38
39
name: Build lk2nd
on:
workflow_call:
inputs:
project:
type: string
required: true
platform:
type: string
required: true
options:
type: string
artifacts:
type: string
required: true
jobs:
build:
name: ${{ inputs.platform }}
runs-on: ubuntu-latest
steps:
# Install dtc for lk2nd (not needed for lk1st without device tree)
- name: Install additional build dependencies
run: sudo apt-get install -yqq device-tree-compiler
if: inputs.project == 'lk2nd'
- name: Install cross compiler
uses: carlosperate/arm-none-eabi-gcc-action@v1
- run: arm-none-eabi-gcc --version
- uses: actions/checkout@v4
- name: Build
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi-
${{ inputs.options }} ${{ inputs.project }}-${{ inputs.platform }}
- name: Archive artifacts
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.project }}-${{ inputs.platform }}
path: ${{ inputs.artifacts }}
env:
LKLE_CFLAGS: -Werror