From e41440b16ba03f2db1614d50f064d8e59b1f0d67 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 22 Aug 2026 12:23:24 -0500 Subject: [PATCH] Tilde-expand the install prefix before the CI cache-path assertion The job env carries a literal ~ that Python's expanduser and actions/cache both resolve; the assertion compared the raw string and failed the native toolchain job. --- .github/actions/cache-arduino8266/action.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/actions/cache-arduino8266/action.yml b/.github/actions/cache-arduino8266/action.yml index 15105004ec..6a33b0d1aa 100644 --- a/.github/actions/cache-arduino8266/action.yml +++ b/.github/actions/cache-arduino8266/action.yml @@ -17,8 +17,10 @@ runs: shell: bash run: | # The caller's install prefix must match the cached path below, or - # the cache silently stores/restores an empty directory - [ "$ESPHOME_ARDUINO8266_PREFIX" = "$HOME/.esphome-arduino8266" ] || { + # the cache silently stores/restores an empty directory. Compare + # tilde-expanded: the job env carries a literal ~ that Python's + # expanduser and actions/cache both resolve. + [ "${ESPHOME_ARDUINO8266_PREFIX/#\~/$HOME}" = "$HOME/.esphome-arduino8266" ] || { echo "ESPHOME_ARDUINO8266_PREFIX is '$ESPHOME_ARDUINO8266_PREFIX', expected '$HOME/.esphome-arduino8266'" >&2 exit 1 }