Skip to content

Commit 0aa6115

Browse files
jeplerdpgeorge
authored andcommitted
github/workflows: Introduce and use ci_esp32_idf_ver helper.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
1 parent 99c59fa commit 0aa6115

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- uses: actions/checkout@v6
3737

3838
- id: idf_ver
39-
name: Read the ESP-IDF version (including Python version)
40-
run: source tools/ci.sh && echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}" | tee "$GITHUB_OUTPUT"
39+
name: Read the ESP-IDF version (including Python version) and set outputs.IDF_VER
40+
run: tools/ci.sh esp32_idf_ver | tee "${GITHUB_OUTPUT}"
4141

4242
- name: Cached ESP-IDF install
4343
id: cache_esp_idf

tools/ci.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ PYTHON_VER=$(${PYTHON:-python} --version | cut -d' ' -f2)
206206

207207
export IDF_CCACHE_ENABLE=1
208208

209+
function ci_esp32_idf_ver {
210+
echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}"
211+
}
212+
209213
function ci_esp32_idf_setup {
210214
echo "Using ESP-IDF version $IDF_VER"
211215
git clone --depth 1 --branch $IDF_VER https://github.com/espressif/esp-idf.git

0 commit comments

Comments
 (0)