Skip to content

Commit

Permalink
Add github CI
Browse files Browse the repository at this point in the history
  • Loading branch information
alikates committed Aug 23, 2023
1 parent 54174be commit fce2495
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build
on: [push, pull_request]

jobs:
lk2nd-msm8953:
name: lk2nd
uses: ./.github/workflows/lk2nd.yml
with:
project: msm8953-secondary
platform: msm8953
artifacts: |
build-*/lk.bin
build-*/lk2nd.img
37 changes: 37 additions & 0 deletions .github/workflows/lk2nd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
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:
- name: Install additional build dependencies
run: sudo apt-get update -yqq && sudo apt-get install -yqq device-tree-compiler
- name: Install cross compiler
uses: carlosperate/arm-none-eabi-gcc-action@v1
- run: arm-none-eabi-gcc --version
- uses: actions/checkout@v3
- name: Build
run: git clean -dxf && make -j$(nproc) TOOLCHAIN_PREFIX=arm-none-eabi-
${{ inputs.options }} ${{ inputs.platform }}-secondary
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.platform }}
path: ${{ inputs.artifacts }}
env:
LKLE_CFLAGS: -Werror

0 comments on commit fce2495

Please sign in to comment.