diff --git a/tools/ci/config/build.yml b/tools/ci/config/build.yml index 215f5117e..c5dab206d 100644 --- a/tools/ci/config/build.yml +++ b/tools/ci/config/build.yml @@ -282,3 +282,82 @@ build_docker: # The workaround mentioned there works, but leaves around directories which need to be cleaned up manually. # Therefore, build a copy of the example located inside the container. - docker run --rm --workdir /opt/esp/idf/examples/get-started/blink ${DOCKER_TMP_IMAGE_NAME} idf.py build + +build_idf_exe: + stage: build + image: $CI_DOCKER_REGISTRY/esp32-toolchain-win-cross + tags: + - build + only: + refs: + - master + - /^release\/v/ + - /^v\d+\.\d+(\.\d+)?($|-)/ + - schedules + before_script: [] + artifacts: + paths: + - tools/windows/idf_exe/build/idf-exe-v*.zip + expire_in: 3 days + script: + - cd tools/windows/idf_exe/ + - mkdir build + - cd build + - cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-i686-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Release .. + - cmake --build . + +build_cmdlinerunner: + stage: build + image: $CI_DOCKER_REGISTRY/esp32-toolchain-win-cross + tags: + - build + only: + refs: + - master + - /^release\/v/ + - /^v\d+\.\d+(\.\d+)?($|-)/ + - schedules + before_script: [] + artifacts: + paths: + - tools/windows/tool_setup/cmdlinerunner/build/cmdlinerunner.dll + expire_in: 3 days + script: + - cd tools/windows/tool_setup/cmdlinerunner + - mkdir build + - cd build + - cmake -DCMAKE_TOOLCHAIN_FILE=../toolchain-i686-w64-mingw32.cmake -DCMAKE_BUILD_TYPE=Release .. + - cmake --build . + +build_installer: + # using a different stage here to be able to use artifacts from build_cmdlinerunner job + stage: host_test + image: $CI_DOCKER_REGISTRY/wine-innosetup:1 + tags: + - build + only: + refs: + - master + - /^release\/v/ + - /^v\d+\.\d+(\.\d+)?($|-)/ + - schedules + dependencies: + - build_cmdlinerunner + before_script: [] + script: + - mkdir idf_tools_tmp + - export IDF_TOOLS_PATH=$PWD/idf_tools_tmp + - tools/idf_tools.py --non-interactive download --platform Windows-x86_64 all + - tools/idf_tools.py --tools-json tools/windows/tool_setup/tools_fallback.json --non-interactive download --platform Windows-x86_64 all + - mkdir tools/windows/tool_setup/dist + - mv idf_tools_tmp/dist/* tools/windows/tool_setup/dist/ + + - cd tools/windows/tool_setup/ + - mkdir unzip + - cd unzip + - wget --no-verbose https://www.7-zip.org/a/7z1900-extra.7z + - 7zr e -y 7z1900-extra.7z + - cd .. + + - wget --no-verbose https://dl.espressif.com/dl/esp-idf/idf_versions.txt + - iscc idf_tool_setup.iss