Skip to content

Commit 68ba1c5

Browse files
committed
update pipeline
1 parent 757bf7c commit 68ba1c5

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

.github/workflows/ESP32.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,19 @@ 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+
# Download and set up ESP-IDF (if not cached)
57+
- name: Set up ESP-IDF
58+
id: export-idf
59+
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
60+
run: |
61+
cd ~
62+
# git clone --depth 1 --branch v5.5.1 https://github.com/espressif/esp-idf.git
63+
git clone --depth 1 --branch ${{ env.IDF_VER }} https://github.com/espressif/esp-idf.git
64+
git -C esp-idf submodule update --init --recursive --filter=tree:0
65+
cd esp-idf
66+
./install.sh all
67+
source ./export.sh
68+
5669
# Clone the latest MicroPython release (if not cached)
5770
- name: Clone MicroPython latest release
5871
id: clone-micropython
@@ -72,19 +85,6 @@ jobs:
7285
echo "Micropython setup successfully"
7386
source ~/micropython/tools/ci.sh && echo "IDF_VER=$IDF_VER" >> $GITHUB_ENV
7487
75-
# Download and set up ESP-IDF (if not cached)
76-
- name: Set up ESP-IDF
77-
id: export-idf
78-
if: steps.cache_esp_idf.outputs.cache-hit != 'true'
79-
run: |
80-
cd ~
81-
# git clone --depth 1 --branch v5.5.1 https://github.com/espressif/esp-idf.git
82-
git clone --depth 1 --branch ${{ env.IDF_VER }} https://github.com/espressif/esp-idf.git
83-
git -C esp-idf submodule update --init --recursive --filter=tree:0
84-
cd esp-idf
85-
./install.sh all
86-
source ./export.sh
87-
8888
# Dynamically create jobs for each board
8989
build:
9090
needs: setup-environment

0 commit comments

Comments
 (0)