mirror of
https://github.com/espressif/esp-matter.git
synced 2026-04-27 19:13:13 +00:00
esp-matter-ci : Changes to fix the arbitary failures in esp-matter CI test cases by using symlink approach.
This commit is contained in:
committed by
Hrishikesh Dhayagude
parent
cc635e23c2
commit
0123d1ed2e
@@ -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
|
||||
Reference in New Issue
Block a user