8000 tools/ci.sh: Build esp32 using IDF v4.0.2 and v4.3. · micropython/micropython@a9bbf70 · GitHub
[go: up one dir, main page]

Skip to content

Commit a9bbf70

Browse files
committed
tools/ci.sh: Build esp32 using IDF v4.0.2 and v4.3.
To test different IDF's, and also test building the GENERIC_S2 board. Signed-off-by: Damien George <damien@micropython.org>
1 parent d97b8da commit a9bbf70

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/ports_esp32.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,20 @@ on:
1313
- 'ports/esp32/**'
1414

1515
jobs:
16-
build:
16+
build_idf402:
1717
runs-on: ubuntu-20.04
1818
steps:
1919
- uses: actions/checkout@v2
2020
- name: Install packages
21-
run: source tools/ci.sh && ci_esp32_setup
21+
run: source tools/ci.sh && ci_esp32_idf402_setup
22+
- name: Build
23+
run: source tools/ci.sh && ci_esp32_build
24+
25+
build_idf43:
26+
runs-on: ubuntu-20.04
27+
steps:
28+
- uses: actions/checkout@v2
29+
- name: Install packages
30+
run: source tools/ci.sh && ci_esp32_idf43_setup
2231
- name: Build
2332
run: source tools/ci.sh && ci_esp32_build

tools/ci.sh

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,26 +82,37 @@ function ci_cc3200_build {
8282
########################################################################################
8383
# ports/esp32
8484

85-
function ci_esp32_setup {
85+
function ci_esp32_setup_helper {
8686
git clone https://github.com/espressif/esp-idf.git
87-
git -C esp-idf checkout v4.0.2
87+
git -C esp-idf checkout $1
8888
git -C esp-idf submodule update --init \
8989
components/bt/controller/lib \
9090
components/bt/host/nimble/nimble \
91-
components/esp_wifi/lib_esp32 \
91+
components/esp_wifi \
9292
components/esptool_py/esptool \
9393
components/lwip/lwip \
9494
components/mbedtls/mbedtls
9595
./esp-idf/install.sh
9696
}
9797

98+
function ci_esp32_idf402_setup {
99+
ci_esp32_setup_helper v4.0.2
100+
}
101+
102+
function ci_esp32_idf43_setup {
103+
ci_esp32_setup_helper v4.3-beta2
104+
}
105+
98106
function ci_esp32_build {
99107
source esp-idf/export.sh
100108
make ${MAKEOPTS} -C mpy-cross
101109
make ${MAKEOPTS} -C ports/esp32 submodules
102110
make ${MAKEOPTS} -C ports/esp32
103111
make ${MAKEOPTS} -C ports/esp32 clean
104112
make ${MAKEOPTS} -C ports/esp32 USER_C_MODULES=../../../examples/usercmodule/micropython.cmake
113+
if [ -d $IDF_PATH/components/esp32s2 ]; then
114+
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_S2
115+
fi
105116
}
106117

107118
########################################################################################

0 commit comments

Comments
 (0)
0