27bc3ea258
Twister is more useful in a CI context because we can easily test multiple combinations of the firmware using a single command. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
36 lines
766 B
YAML
36 lines
766 B
YAML
name: Build
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-22.04
|
|
container: ghcr.io/zephyrproject-rtos/ci:v0.26.2
|
|
env:
|
|
CMAKE_PREFIX_PATH: /opt/toolchains
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
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 twister -T app -v --inline-logs --integration
|
|
|
|
- name: Twister Tests
|
|
working-directory: example-application
|
|
run: |
|
|
west twister -T tests --integration
|