2021-04-18 18:57:45 +00:00
|
|
|
name: Build
|
|
|
|
|
2021-05-10 07:53:07 +00:00
|
|
|
on: [push, pull_request]
|
2021-04-18 18:57:45 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container: zephyrprojectrtos/ci:latest
|
2021-10-08 11:11:18 +00:00
|
|
|
env:
|
|
|
|
CMAKE_PREFIX_PATH: /opt/toolchains
|
2021-04-18 18:57:45 +00:00
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: example-application
|
|
|
|
|
|
|
|
- name: Initialize
|
|
|
|
working-directory: example-application
|
|
|
|
run: |
|
|
|
|
pip3 install -U west
|
|
|
|
west init -l .
|
|
|
|
west update
|
|
|
|
pip3 install -r ../zephyr/scripts/requirements-base.txt
|
|
|
|
|
|
|
|
- name: Build firmware
|
|
|
|
working-directory: example-application
|
|
|
|
run: |
|
|
|
|
west build -b custom_plank -s app
|
|
|
|
|
|
|
|
- name: Archive firmware
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: firmware
|
|
|
|
path: example-application/build/zephyr/zephyr.*
|