kopia lustrzana https://github.com/micropython/micropython
github/workflows: Update esp32 CI to use IDF v5.0.
Signed-off-by: Damien George <damien@micropython.org>pull/11528/head
rodzic
68e0e889b4
commit
6a9db521ed
|
@ -18,20 +18,11 @@ concurrency:
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_idf402:
|
build_idf50:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
run: source tools/ci.sh && ci_esp32_idf402_setup
|
run: source tools/ci.sh && ci_esp32_idf50_setup
|
||||||
- name: Build
|
|
||||||
run: source tools/ci.sh && ci_esp32_build
|
|
||||||
|
|
||||||
build_idf44:
|
|
||||||
runs-on: ubuntu-20.04
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Install packages
|
|
||||||
run: source tools/ci.sh && ci_esp32_idf44_setup
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: source tools/ci.sh && ci_esp32_build
|
run: source tools/ci.sh && ci_esp32_build
|
||||||
|
|
32
tools/ci.sh
32
tools/ci.sh
|
@ -115,35 +115,13 @@ function ci_cc3200_build {
|
||||||
########################################################################################
|
########################################################################################
|
||||||
# ports/esp32
|
# ports/esp32
|
||||||
|
|
||||||
function ci_esp32_setup_helper {
|
function ci_esp32_idf50_setup {
|
||||||
pip3 install pyelftools
|
pip3 install pyelftools
|
||||||
git clone https://github.com/espressif/esp-idf.git
|
git clone https://github.com/espressif/esp-idf.git
|
||||||
git -C esp-idf checkout $1
|
git -C esp-idf checkout v5.0.2
|
||||||
git -C esp-idf submodule update --init \
|
|
||||||
components/bt/host/nimble/nimble \
|
|
||||||
components/esp_wifi \
|
|
||||||
components/esptool_py/esptool \
|
|
||||||
components/lwip/lwip \
|
|
||||||
components/mbedtls/mbedtls
|
|
||||||
if [ -d esp-idf/components/bt/controller/esp32 ]; then
|
|
||||||
git -C esp-idf submodule update --init \
|
|
||||||
components/bt/controller/lib_esp32 \
|
|
||||||
components/bt/controller/lib_esp32c3_family
|
|
||||||
else
|
|
||||||
git -C esp-idf submodule update --init \
|
|
||||||
components/bt/controller/lib
|
|
||||||
fi
|
|
||||||
./esp-idf/install.sh
|
./esp-idf/install.sh
|
||||||
}
|
}
|
||||||
|
|
||||||
function ci_esp32_idf402_setup {
|
|
||||||
ci_esp32_setup_helper v4.0.2
|
|
||||||
}
|
|
||||||
|
|
||||||
function ci_esp32_idf44_setup {
|
|
||||||
ci_esp32_setup_helper v4.4.2
|
|
||||||
}
|
|
||||||
|
|
||||||
function ci_esp32_build {
|
function ci_esp32_build {
|
||||||
source esp-idf/export.sh
|
source esp-idf/export.sh
|
||||||
make ${MAKEOPTS} -C mpy-cross
|
make ${MAKEOPTS} -C mpy-cross
|
||||||
|
@ -151,15 +129,9 @@ function ci_esp32_build {
|
||||||
make ${MAKEOPTS} -C ports/esp32 \
|
make ${MAKEOPTS} -C ports/esp32 \
|
||||||
USER_C_MODULES=../../../examples/usercmodule/micropython.cmake \
|
USER_C_MODULES=../../../examples/usercmodule/micropython.cmake \
|
||||||
FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest_test.py
|
FROZEN_MANIFEST=$(pwd)/ports/esp32/boards/manifest_test.py
|
||||||
if [ -d $IDF_PATH/components/esp32c3 ]; then
|
|
||||||
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_C3
|
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_C3
|
||||||
fi
|
|
||||||
if [ -d $IDF_PATH/components/esp32s2 ]; then
|
|
||||||
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_S2
|
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_S2
|
||||||
fi
|
|
||||||
if [ -d $IDF_PATH/components/esp32s3 ]; then
|
|
||||||
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_S3
|
make ${MAKEOPTS} -C ports/esp32 BOARD=GENERIC_S3
|
||||||
fi
|
|
||||||
|
|
||||||
# Test building native .mpy with xtensawin architecture.
|
# Test building native .mpy with xtensawin architecture.
|
||||||
ci_native_mpy_modules_build xtensawin
|
ci_native_mpy_modules_build xtensawin
|
||||||
|
|
Ładowanie…
Reference in New Issue