telem3-fw/.github/workflows/build.yml
Torsten Rasmussen 325bd84244 workflow: add /opt/toolchains to CMAKE_PREFIX_PATH in environment.
Fixes: #39270

The latest zephyrprojectrtos/ci no longer sets ZEPHYR_SDK_INSTALL_DIR
in the environment and doesn't register the Zephyr-SDK as a CMake
package in the CMake package registry.

To ensure the the Zephyr SDK can be correctly discovered by
find_package(Zephyr-sdk) we add `/opt/toolchains` to the
CMAKE_PREFIX_PATH environment variable which is a list containing
additional search prefixes for the `find_package()` function.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-10-11 10:19:07 +02:00

35 lines
830 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: |
pip3 install -U west
west init -l .
west update
pip3 install -r ../zephyr/scripts/requirements-base.txt
- name: Build firmware
working-directory: example-application
run: |
west build -b custom_plank -s app
- name: Archive firmware
uses: actions/upload-artifact@v2
with:
name: firmware
path: example-application/build/zephyr/zephyr.*