esp-matter-ci : Changes to fix the arbitary failures in esp-matter CI test cases by using symlink approach.

This commit is contained in:
Shripad Deshpande
2024-04-30 13:55:05 +08:00
committed by Hrishikesh Dhayagude
parent cc635e23c2
commit 0123d1ed2e
4 changed files with 251 additions and 58 deletions
+49
View File
@@ -0,0 +1,49 @@
ARG VERSION=latest
FROM ghcr.io/project-chip/chip-build:${VERSION} as build
# Use IDF_CHECKOUT_REF to specify a tag, a branch or a specific commit ID.
ARG IDF_CLONE_URL=https://github.com/espressif/esp-idf.git
ARG IDF_CHECKOUT_REF=v5.2.1
RUN set -x \
&& mkdir -p /tmp/esp-idf \
&& cd /tmp/esp-idf \
&& git init \
&& git remote add origin $IDF_CLONE_URL \
&& git fetch origin --depth=1 --recurse-submodules ${IDF_CHECKOUT_REF} \
&& git checkout FETCH_HEAD \
&& git submodule update --init --recursive --depth 1 \
&& : # last line
FROM ghcr.io/project-chip/chip-build:${VERSION}
ENV IDF_PATH=/opt/espressif/esp-idf/
ENV IDF_TOOLS_PATH=/opt/espressif/tools
COPY --from=build /tmp/esp-idf /opt/espressif/esp-idf
# Setup the ESP-IDF
WORKDIR /opt/espressif/esp-idf
RUN set -x \
&& ./install.sh \
&& : # last line
ARG CHIP_CLONE_URL=https://github.com/espressif/connectedhomeip.git
ARG CHIP_CHECKOUT_REF=9f6d627e0262e1d023986291948bb4e845be803e
WORKDIR /opt/espressif
ENV CHIP_SUBMODULE_PATH=/opt/espressif/connectedhomeip
RUN set -x \
&& mkdir -p $CHIP_SUBMODULE_PATH \
&& cd $CHIP_SUBMODULE_PATH \
&& git init \
&& git remote add origin $CHIP_CLONE_URL \
&& git fetch origin --depth=1 ${CHIP_CHECKOUT_REF} \
&& git checkout FETCH_HEAD \
&& ./scripts/checkout_submodules.py --platform esp32 linux --shallow \
&& bash -c "source scripts/bootstrap.sh" \
&& ./scripts/examples/gn_build_example.sh examples/chip-tool out/host \
&& : # last line