mirror of
https://github.com/micropython/micropython.git
synced 2026-01-27 22:30:20 +01:00
github/workflows: Introduce and use ci_esp32_idf_ver helper.
Signed-off-by: Jeff Epler <jepler@unpythonic.net>
This commit is contained in:
committed by
Damien George
parent
99c59fabdb
commit
0aa6115aac
4
.github/workflows/ports_esp32.yml
vendored
4
.github/workflows/ports_esp32.yml
vendored
@@ -36,8 +36,8 @@ jobs:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- id: idf_ver
|
||||
name: Read the ESP-IDF version (including Python version)
|
||||
run: source tools/ci.sh && echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}" | tee "$GITHUB_OUTPUT"
|
||||
name: Read the ESP-IDF version (including Python version) and set outputs.IDF_VER
|
||||
run: tools/ci.sh esp32_idf_ver | tee "${GITHUB_OUTPUT}"
|
||||
|
||||
- name: Cached ESP-IDF install
|
||||
id: cache_esp_idf
|
||||
|
||||
@@ -206,6 +206,10 @@ PYTHON_VER=$(${PYTHON:-python} --version | cut -d' ' -f2)
|
||||
|
||||
export IDF_CCACHE_ENABLE=1
|
||||
|
||||
function ci_esp32_idf_ver {
|
||||
echo "IDF_VER=${IDF_VER}-py${PYTHON_VER}"
|
||||
}
|
||||
|
||||
function ci_esp32_idf_setup {
|
||||
echo "Using ESP-IDF version $IDF_VER"
|
||||
git clone --depth 1 --branch $IDF_VER https://github.com/espressif/esp-idf.git
|
||||
|
||||
Reference in New Issue
Block a user