diff --git a/tools/ci/config/build.yml b/tools/ci/config/build.yml index e954b13760..a83e2c5f78 100644 --- a/tools/ci/config/build.yml +++ b/tools/ci/config/build.yml @@ -95,15 +95,6 @@ build_esp_idf_tests_cmake_esp32s2: - $BOT_LABEL_EXAMPLE_TEST - $BOT_LABEL_REGULAR_TEST - $BOT_LABEL_WEEKEND_TEST - script: - # it's not possible to build 100% out-of-tree and have the "artifacts" - # mechanism work, but this is the next best thing - - mkdir ${BUILD_PATH} - - mkdir -p ${LOG_PATH} - - ${IDF_PATH}/tools/ci/build_examples.sh - # Check if the tests demand Make built binaries. If not, delete them - - if [ ${EXAMPLE_TEST_BUILD_SYSTEM} == "cmake" ]; then exit 0; fi - - rm -rf ${BUILD_PATH} build_examples_make: extends: .build_examples_template @@ -127,6 +118,15 @@ build_examples_make: - schedules - pipelines - web + script: + # it's not possible to build 100% out-of-tree and have the "artifacts" + # mechanism work, but this is the next best thing + - mkdir ${BUILD_PATH} + - mkdir -p ${LOG_PATH} + - ${IDF_PATH}/tools/ci/build_examples.sh + # Check if the tests demand Make built binaries. If not, delete them + - if [ ${EXAMPLE_TEST_BUILD_SYSTEM} == "cmake" ]; then exit 0; fi + - rm -rf ${BUILD_PATH} # same as above, but for CMake .build_examples_cmake: &build_examples_cmake @@ -147,6 +147,17 @@ build_examples_make: LOG_PATH: "${CI_PROJECT_DIR}/log_examples" BUILD_PATH: "${CI_PROJECT_DIR}/build_examples" EXAMPLE_TEST_BUILD_SYSTEM: "cmake" + script: + # install idf-component-manager inside CI pipeline to avoid breaking python packages dependencies + - pip install "idf-component-manager~=1.1" + # it's not possible to build 100% out-of-tree and have the "artifacts" + # mechanism work, but this is the next best thing + - mkdir ${BUILD_PATH} + - mkdir -p ${LOG_PATH} + - ${IDF_PATH}/tools/ci/build_examples.sh + # Check if the tests demand Make built binaries. If not, delete them + - if [ ${EXAMPLE_TEST_BUILD_SYSTEM} == "cmake" ]; then exit 0; fi + - rm -rf ${BUILD_PATH} build_examples_cmake_esp32: extends: .build_examples_cmake