1a440a2182
Schedule a daily build, so that we can quickly spot regressions in the application due to changes in Zephyr. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
42 lines
946 B
YAML
42 lines
946 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
container: zephyrprojectrtos/ci:latest
|
|
env:
|
|
CMAKE_PREFIX_PATH: /opt/toolchains
|
|
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: |
|
|
west build -b custom_plank app
|
|
|
|
- name: Twister Tests
|
|
working-directory: example-application
|
|
run: |
|
|
../zephyr/scripts/twister -G --board-root boards/ --testsuite-root ./tests/
|
|
|
|
- name: Archive firmware
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: firmware
|
|
path: example-application/build/zephyr/zephyr.*
|