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: |
|
|
|
|
west init -l .
|
|
|
|
west update
|
|
|
|
|
|
|
|
- name: Build firmware
|
|
|
|
working-directory: example-application
|
|
|
|
run: |
|
2022-07-01 13:35:04 +00:00
|
|
|
west build -b custom_plank app
|
2021-04-18 18:57:45 +00:00
|
|
|
|
2022-11-19 14:54:27 +00:00
|
|
|
- name: Twister Tests
|
2021-05-21 01:49:09 +00:00
|
|
|
working-directory: example-application
|
|
|
|
run: |
|
2022-11-19 14:54:27 +00:00
|
|
|
../zephyr/scripts/twister -G --board-root boards/ --testsuite-root ./tests/
|
2021-05-21 01:49:09 +00:00
|
|
|
|
2021-04-18 18:57:45 +00:00
|
|
|
- name: Archive firmware
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: firmware
|
|
|
|
path: example-application/build/zephyr/zephyr.*
|