Skip to content

Commit 325bd84

Browse files
tejlmandcarlescufi
authored andcommitted
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 <[email protected]>
1 parent e50d42c commit 325bd84

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
container: zephyrprojectrtos/ci:latest
9+
env:
10+
CMAKE_PREFIX_PATH: /opt/toolchains
911
steps:
1012
- name: Checkout
1113
uses: actions/checkout@v2

0 commit comments

Comments
 (0)