Skip to content

Commit c125c5e

Browse files
committed
action: encode the repo name in the SDK cache key
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. Make the repository name part of the SDK cache key, so that if the repository is renamed, the cached sdk with the wrong path is not reused. Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
1 parent e5be50a commit c125c5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ runs:
205205
uses: actions/cache@v4
206206
with:
207207
path: ${{ inputs.base-path }}/zephyr-sdk
208-
key: ${{ env.SDK_FILE }}-${{ inputs.toolchains }}
208+
key: ${{ env.SDK_FILE }}-${{ github.event.repository.name }}-${{ inputs.toolchains }}
209209

210210
- if: ${{ steps.cache-toolchain.outputs.cache-hit != 'true' }}
211211
working-directory: ${{ inputs.base-path }}

0 commit comments

Comments
 (0)