Skip to content

Commit 453f425

Browse files
authored
🐛⚗️ARM CI: build fail in CI on ARM (#7606)
1 parent 2ff5c46 commit 453f425

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/ci-arm-build.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,4 @@ jobs:
5555
run: |
5656
export DOCKER_IMAGE_TAG="$TAG_PREFIX-latest-arm64"
5757
export DOCKER_TARGET_PLATFORMS=linux/arm64
58-
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
59-
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
60-
export UV_COMPILE_BYTECODE=1
61-
export UV_CONCURRENT_INSTALLS=1
6258
make build push=true

packages/service-integration/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ COPY --from=uv_build /uv /uvx /bin/
6666
# packages may be moved to production image easily by copying the venv
6767
RUN uv venv "${VIRTUAL_ENV}"
6868

69+
# Set UV_CONCURRENT_INSTALLS=1 for ARM64 to improve build performance
70+
# These environment variables are necessary because of https://github.com/astral-sh/uv/issues/6105
71+
# and until https://gitlab.com/qemu-project/qemu/-/issues/2846 gets fixed
72+
RUN if [ "$TARGETARCH" = "arm64" ]; then \
73+
echo "Setting UV_CONCURRENT_INSTALLS=1 for ARM64 architecture"; \
74+
export UV_CONCURRENT_INSTALLS=1; \
75+
fi
76+
6977
RUN --mount=type=cache,target=/root/.cache/uv \
7078
uv pip install --upgrade \
7179
pip~=24.0 \

0 commit comments

Comments
 (0)