Skip to content

Commit f685877

Browse files
committed
action: use $HOME/zephyr-sdk for the Zephyr SDK
The Zephyr SDK install has a step where it tweaks the library paths of the host utilities so match the full install path and have them run without having to set LD_LIBRARY_PATH. In the current setup that path includes the repository name, which means that if the repository is renamed the cached SDK is going to end up having a non working path leading to a confusing error, typically dtc not found. Move the SDK install to the home directory, so that the path does not depend on the repository name. The SDK is found using a CMake package so it can really be installed anywhere. Signed-off-by: Fabio Baltieri <[email protected]>
1 parent 3a58338 commit f685877

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,11 @@ runs:
204204
id: cache-toolchain
205205
uses: actions/cache@v4
206206
with:
207-
path: ${{ inputs.base-path }}/zephyr-sdk
207+
path: /opt/zephyr-sdk
208208
key: ${{ env.SDK_FILE }}-${{ inputs.toolchains }}
209209

210210
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
211-
working-directory: ${{ inputs.base-path }}
211+
working-directory: /opt
212212
name: Download Zephyr SDK
213213
shell: bash
214214
run: |
@@ -222,7 +222,7 @@ runs:
222222
fi
223223
224224
- name: Setup Zephyr SDK
225-
working-directory: ${{ inputs.base-path }}/zephyr-sdk
225+
working-directory: /opt/zephyr-sdk
226226
shell: bash
227227
run: |
228228
IFS=":"

0 commit comments

Comments
 (0)