2021-04-18 18:57:45 +00:00
|
|
|
name: Build
|
|
|
|
|
2023-04-14 08:19:33 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
schedule:
|
|
|
|
- cron: "0 0 * * *"
|
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
|
2023-04-17 08:25:38 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-04-18 18:57:45 +00:00
|
|
|
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: |
|
2023-05-03 06:37:20 +00:00
|
|
|
west twister -G --testsuite-root ./tests/
|
2021-05-21 01:49:09 +00:00
|
|
|
|
2021-04-18 18:57:45 +00:00
|
|
|
- name: Archive firmware
|
2023-04-17 08:25:38 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-04-18 18:57:45 +00:00
|
|
|
with:
|
|
|
|
name: firmware
|
|
|
|
path: example-application/build/zephyr/zephyr.*
|