telem3-fw/.github/workflows/build.yml
Carles Cufi 605c65039f workflows: build: Do not install west and requirements
This is not necessary since it's running in the zephyr docker image,
that already contains them.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
2022-11-19 16:16:52 +01:00

38 lines
905 B
YAML

name: Build
on: [push, pull_request]
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 Unit Tests
working-directory: example-application
run: |
../zephyr/scripts/twister -p qemu_cortex_m0 --testcase-root ./tests/
- name: Archive firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: example-application/build/zephyr/zephyr.*