[CI/Build][CPU] Shrink triton-cpu-build layer by dropping build artifacts (#52127)
Signed-off-by: jiang1.li <jiang1.li@intel.com>
This commit is contained in:
@@ -259,6 +259,7 @@ RUN mkdir dist
|
|||||||
RUN --mount=type=cache,target=/root/.cache/uv \
|
RUN --mount=type=cache,target=/root/.cache/uv \
|
||||||
--mount=type=cache,target=/root/.cache/ccache \
|
--mount=type=cache,target=/root/.cache/ccache \
|
||||||
--mount=type=cache,target=/vllm-workspace/.deps,sharing=locked \
|
--mount=type=cache,target=/vllm-workspace/.deps,sharing=locked \
|
||||||
|
--mount=type=cache,target=/root/.triton \
|
||||||
--mount=type=secret,id=aws-credentials,target=/root/.aws/credentials,required=false \
|
--mount=type=secret,id=aws-credentials,target=/root/.aws/credentials,required=false \
|
||||||
if [ "$TARGETARCH" = "amd64" ] || [ "$VLLM_CPU_X86" != "0" ]; then \
|
if [ "$TARGETARCH" = "amd64" ] || [ "$VLLM_CPU_X86" != "0" ]; then \
|
||||||
git clone --recurse-submodules --shallow-submodules --filter=blob:none "https://github.com/triton-lang/triton-cpu.git"; \
|
git clone --recurse-submodules --shallow-submodules --filter=blob:none "https://github.com/triton-lang/triton-cpu.git"; \
|
||||||
@@ -271,6 +272,8 @@ RUN --mount=type=cache,target=/root/.cache/uv \
|
|||||||
fi; \
|
fi; \
|
||||||
uv build --wheel --out-dir=../dist; \
|
uv build --wheel --out-dir=../dist; \
|
||||||
if [ "$USE_SCCACHE" = "1" ]; then sccache --show-stats; fi; \
|
if [ "$USE_SCCACHE" = "1" ]; then sccache --show-stats; fi; \
|
||||||
|
cd ..; \
|
||||||
|
rm -rf triton-cpu; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
######################### TEST DEPS #########################
|
######################### TEST DEPS #########################
|
||||||
|
|||||||
Reference in New Issue
Block a user