mirror of https://github.com/home-assistant/core
Fix building images for nightlies (#114054)
This commit is contained in:
parent
31fb02a71d
commit
ce48e6e574
|
@ -148,7 +148,7 @@ jobs:
|
||||||
sed -i "s|home-assistant-frontend==.*|home-assistant-frontend==${BASH_REMATCH[1]}|" \
|
sed -i "s|home-assistant-frontend==.*|home-assistant-frontend==${BASH_REMATCH[1]}|" \
|
||||||
homeassistant/package_constraints.txt
|
homeassistant/package_constraints.txt
|
||||||
|
|
||||||
python -m script.gen_requirements_all
|
sed -i "s|home-assistant-frontend==.*||" requirements_all.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(ls home_assistant_intents*.whl)" =~ ^home_assistant_intents-(.*)-py3-none-any.whl$ ]]; then
|
if [[ "$(ls home_assistant_intents*.whl)" =~ ^home_assistant_intents-(.*)-py3-none-any.whl$ ]]; then
|
||||||
|
@ -166,7 +166,7 @@ jobs:
|
||||||
sed -i "s|home-assistant-intents==.*|home-assistant-intents==${BASH_REMATCH[1]}|" \
|
sed -i "s|home-assistant-intents==.*|home-assistant-intents==${BASH_REMATCH[1]}|" \
|
||||||
homeassistant/package_constraints.txt
|
homeassistant/package_constraints.txt
|
||||||
|
|
||||||
python -m script.gen_requirements_all
|
sed -i "s|home-assistant-intents==.*||" requirements_all.txt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Adjustments for armhf
|
- name: Adjustments for armhf
|
||||||
|
|
|
@ -12,7 +12,7 @@ ENV \
|
||||||
ARG QEMU_CPU
|
ARG QEMU_CPU
|
||||||
|
|
||||||
# Install uv
|
# Install uv
|
||||||
RUN pip3 install uv==0.1.22
|
RUN pip3 install uv==0.1.24
|
||||||
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
|
@ -26,11 +26,8 @@ RUN \
|
||||||
|
|
||||||
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
|
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
|
||||||
RUN \
|
RUN \
|
||||||
if ls homeassistant/home_assistant_frontend*.whl 1> /dev/null 2>&1; then \
|
if ls homeassistant/home_assistant_*.whl 1> /dev/null 2>&1; then \
|
||||||
uv pip install homeassistant/home_assistant_frontend-*.whl; \
|
uv pip install homeassistant/home_assistant_*.whl; \
|
||||||
fi \
|
|
||||||
&& if ls homeassistant/home_assistant_intents*.whl 1> /dev/null 2>&1; then \
|
|
||||||
uv pip install homeassistant/home_assistant_intents-*.whl; \
|
|
||||||
fi \
|
fi \
|
||||||
&& if [ "${BUILD_ARCH}" = "i386" ]; then \
|
&& if [ "${BUILD_ARCH}" = "i386" ]; then \
|
||||||
LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" \
|
LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" \
|
||||||
|
|
|
@ -51,4 +51,4 @@ types-pytz==2023.3.1.1
|
||||||
types-PyYAML==6.0.12.12
|
types-PyYAML==6.0.12.12
|
||||||
types-requests==2.31.0.3
|
types-requests==2.31.0.3
|
||||||
types-xmltodict==0.13.0.3
|
types-xmltodict==0.13.0.3
|
||||||
uv==0.1.22
|
uv==0.1.24
|
|
@ -34,11 +34,8 @@ RUN \
|
||||||
|
|
||||||
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
|
COPY requirements_all.txt home_assistant_frontend-* home_assistant_intents-* homeassistant/
|
||||||
RUN \
|
RUN \
|
||||||
if ls homeassistant/home_assistant_frontend*.whl 1> /dev/null 2>&1; then \
|
if ls homeassistant/home_assistant_*.whl 1> /dev/null 2>&1; then \
|
||||||
uv pip install homeassistant/home_assistant_frontend-*.whl; \
|
uv pip install homeassistant/home_assistant_*.whl; \
|
||||||
fi \
|
|
||||||
&& if ls homeassistant/home_assistant_intents*.whl 1> /dev/null 2>&1; then \
|
|
||||||
uv pip install homeassistant/home_assistant_intents-*.whl; \
|
|
||||||
fi \
|
fi \
|
||||||
&& if [ "${{BUILD_ARCH}}" = "i386" ]; then \
|
&& if [ "${{BUILD_ARCH}}" = "i386" ]; then \
|
||||||
LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" \
|
LD_PRELOAD="/usr/local/lib/libjemalloc.so.2" \
|
||||||
|
|
Loading…
Reference in New Issue