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 27, 2023
1 parent 7f30f95 commit 2e745a2
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Build
on: [push, pull_request]

jobs:
lk2nd-msm8953:
name: lk2nd
uses: ./.github/workflows/lk2nd.yml
with:
platform: msm8953-secondary
artifacts: |
build-*/lk2nd.img
34 changes: 34 additions & 0 deletions .github/workflows/lk2nd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build lk2nd
on:
workflow_call:
inputs:
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 }}
- name: Archive artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.platform }}
path: ${{ inputs.artifacts }}
env:
LKLE_CFLAGS: -Werror

0 comments on commit 2e745a2

Please sign in to comment.