Skip to content

Commit ce23139

Browse files
authored
Create more musllinux wheels (#800)
1 parent 602ebf6 commit ce23139

File tree

3 files changed

+21
-7
lines changed

3 files changed

+21
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ jobs:
258258
259259
build-test-musl:
260260
name: Musllinux ${{ matrix.platform.target }} ${{ matrix.python-version }}
261-
runs-on: ubuntu-latest
261+
runs-on: ${{ matrix.platform.os || 'ubuntu-latest' }}
262262
needs:
263263
- info
264264
- tests
@@ -268,8 +268,16 @@ jobs:
268268
platform:
269269
- target: x86_64
270270
docker_arch: amd64
271-
# - target: aarch64
272-
# docker_arch: arm64
271+
- target: aarch64
272+
docker_arch: arm64
273+
os: ubuntu-24.04-arm
274+
- target: armv7
275+
docker_arch: arm/v7
276+
os: ubuntu-24.04-arm
277+
qemu: true
278+
- target: x86
279+
docker_arch: 386
280+
qemu: true
273281
python-version: ${{ fromJSON(needs.info.outputs.python_versions) }}
274282
steps:
275283
- uses: actions/checkout@v4
@@ -297,6 +305,7 @@ jobs:
297305
with:
298306
name: requirements-test.txt
299307
- name: Install Qemu
308+
if: ${{ matrix.platform.qemu || false }}
300309
uses: docker/setup-qemu-action@v3
301310
- name: Install Docker Buildx
302311
uses: docker/setup-buildx-action@v3

ci/Dockerfile.alpine

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,22 @@ ARG PYTHON_VERSION=3
22
FROM python:${PYTHON_VERSION}-alpine
33

44
ENV \
5-
UV_SYSTEM_PYTHON=true
5+
UV_SYSTEM_PYTHON=true \
6+
UV_EXTRA_INDEX_URL="https://wheels.home-assistant.io/musllinux-index/"
67

78
ENTRYPOINT [ "/entrypoint.sh" ]
89
SHELL ["/bin/sh", "-o", "pipefail", "-c"]
910

1011
COPY ci/entrypoint.sh /entrypoint.sh
1112

1213
# Install uv
13-
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
14+
ADD https://astral.sh/uv/install.sh /uv-installer.sh
15+
RUN \
16+
sh /uv-installer.sh \
17+
&& rm /uv-installer.sh \
18+
&& mv /root/.local/bin/uv /bin/uv
1419

1520
COPY requirements-test.txt /requirements-test.txt
1621

1722
RUN \
18-
uv pip install -r /requirements-test.txt
23+
uv pip install --index-strategy unsafe-best-match -r /requirements-test.txt

tests/test_map.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def test_MapData(event_bus: EventBus) -> None:
4444
map_data = MapData(event_bus)
4545

4646
async def test_cycle() -> None:
47-
for x in range(10000):
47+
for x in range(100):
4848
map_data.positions.append(Position(PositionType.DEEBOT, x, x, 0))
4949
map_data.rooms[x] = Room("test", x, "1,2")
5050

0 commit comments

Comments
 (0)