Skip to content

Commit 8b1ed44

Browse files
projectgusdpgeorge
authored andcommitted
github/workflows: Include the Python version in the ESP-IDF cache key.
Changing runner OS can change Python version, and ESP-IDF installs are keyed on ESP-IDF and Python version together. Signed-off-by: Angus Gratton <[email protected]>
1 parent 7e9d19e commit 8b1ed44

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ jobs:
3030
- uses: actions/checkout@v4
3131

3232
- id: idf_ver
33-
name: Read the ESP-IDF version
34-
run: source tools/ci.sh && echo "IDF_VER=$IDF_VER" | tee "$GITHUB_OUTPUT"
33+
name: Read the ESP-IDF version (including Python version)
34+
run: source tools/ci.sh && echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}" | tee "$GITHUB_OUTPUT"
3535

3636
- name: Cached ESP-IDF install
3737
id: cache_esp_idf

tools/ci.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ function ci_cc3200_build {
140140

141141
# GitHub tag of ESP-IDF to use for CI (note: must be a tag or a branch)
142142
IDF_VER=v5.2.2
143+
PYTHON_VER=$(python --version | cut -d' ' -f2)
143144

144145
export IDF_CCACHE_ENABLE=1
145146

0 commit comments

Comments
 (0)