Skip to content

Commit c90e062

Browse files
committed
update pipeline
1 parent 56496bb commit c90e062

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ESP32.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ concurrency:
2424
jobs:
2525
setup-environment:
2626
runs-on: ubuntu-24.04
27+
outputs:
28+
idf_ver: ${{ steps.get_idf_ver.outputs.idf_ver }}
2729
steps:
2830
# Get the latest MicroPython release
2931
- name: Get MicroPython latest release
@@ -71,16 +73,22 @@ jobs:
7173
make
7274
7375
echo "Micropython setup successfully"
74-
source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
76+
77+
# Get IDF version from MicroPython ci.sh
78+
- name: Get IDF version
79+
id: get_idf_ver
80+
run: |
81+
source ~/micropython/tools/ci.sh
82+
echo "idf_ver=$IDF_VER" >> $GITHUB_OUTPUT
83+
echo "IDF_VER=$IDF_VER"
7584
7685
# Download and set up ESP-IDF (if not cached)
7786
- name: Set up ESP-IDF
7887
id: export-idf
7988
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
8089
run: |
8190
cd ~
82-
# git clone --depth 1 --branch v5.5.1 https://github.com/espressif/esp-idf.git
83-
git clone --depth 1 --branch ${{ env.IDF_VER }} https://github.com/espressif/esp-idf.git
91+
git clone --depth 1 --branch ${{ steps.get_idf_ver.outputs.idf_ver }} https://github.com/espressif/esp-idf.git
8492
git -C esp-idf submodule update --init --recursive --filter=tree:0
8593
cd esp-idf
8694
./install.sh all
@@ -124,6 +132,7 @@ jobs:
124132
run: |
125133
MPY_RELEASE=$(curl --silent "https://api.github.com/repos/micropython/micropython/releases/latest" | jq -r .tag_name)
126134
echo "MPY_RELEASE=${MPY_RELEASE}" >> $GITHUB_ENV
135+
echo "IDF_VER=${{ needs.setup-environment.outputs.idf_ver }}" >> $GITHUB_ENV
127136
128137
# Cache ESP-IDF dependencies and MicroPython
129138
- name: Cache ESP-IDF and MicroPython

0 commit comments

Comments
 (0)