Skip to content

Commit 2dd9711

Browse files
committed
Fix pipeline
1 parent 33328e8 commit 2dd9711

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

.github/workflows/ESP32.yml

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,23 +53,6 @@ jobs:
5353
sudo apt-get update
5454
sudo apt-get install -y git wget flex bison gperf python3 python3-pip python3-venv cmake ninja-build ccache libffi-dev libssl-dev dfu-util libusb-1.0-0
5555
56-
# Clone the latest MicroPython release (if not cached)
57-
- name: Clone MicroPython latest release
58-
id: clone-micropython
59-
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
60-
run: |
61-
echo "Cloning MicroPython release: $MPY_RELEASE"
62-
cd ~
63-
git clone --depth 1 --branch ${{ env.MPY_RELEASE }} https://github.com/micropython/micropython.git
64-
cd micropython
65-
git submodule update --init --depth 1
66-
cd mpy-cross
67-
make
68-
cd ~/micropython/ports/esp32
69-
make submodules
70-
echo "Micropython setup successfully"
71-
source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
72-
7356
# Download and set up ESP-IDF (if not cached)
7457
- name: Set up ESP-IDF
7558
id: export-idf
@@ -91,6 +74,25 @@ jobs:
9174
git clone https://github.com/espressif/esp-adf-libs.git
9275
cp -r ~/esp-adf-libs/esp_new_jpeg ~/esp-idf/components/
9376
77+
# Clone the latest MicroPython release (if not cached)
78+
- name: Clone MicroPython latest release
79+
id: clone-micropython
80+
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
81+
run: |
82+
echo "Cloning MicroPython release: $MPY_RELEASE"
83+
cd ~/esp-idf/
84+
source ./export.sh
85+
cd ~
86+
git clone --depth 1 --branch ${{ env.MPY_RELEASE }} https://github.com/micropython/micropython.git
87+
cd micropython
88+
# git submodule update --init --depth 1
89+
cd mpy-cross
90+
make
91+
cd ~/micropython/ports/esp32
92+
make submodules
93+
echo "Micropython setup successfully"
94+
source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
95+
9496
# Dynamically create jobs for each board
9597
build:
9698
needs: setup-environment

0 commit comments

Comments
 (0)