app: updates to build using latest main #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: app | |
- name: Initialize | |
working-directory: app | |
run: | | |
pip3 install -U west | |
west init -l . | |
west update | |
pip3 install -r ../zephyr/scripts/requirements-base.txt | |
- name: Build firmware | |
working-directory: app | |
run: | | |
west build -b nrf52840dk/nrf52840 -s app | |
- name: Archive firmware | |
uses: actions/upload-artifact@v2 | |
with: | |
name: firmware | |
path: app/build/zephyr/zephyr.* |