Skip to content

Commit

Permalink
Create more musllinux wheels (#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
edenhaus authored Feb 1, 2025
1 parent 602ebf6 commit ce23139
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 7 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ jobs:
build-test-musl:
name: Musllinux ${{ matrix.platform.target }} ${{ matrix.python-version }}
runs-on: ubuntu-latest
runs-on: ${{ matrix.platform.os || 'ubuntu-latest' }}
needs:
- info
- tests
Expand All @@ -268,8 +268,16 @@ jobs:
platform:
- target: x86_64
docker_arch: amd64
# - target: aarch64
# docker_arch: arm64
- target: aarch64
docker_arch: arm64
os: ubuntu-24.04-arm
- target: armv7
docker_arch: arm/v7
os: ubuntu-24.04-arm
qemu: true
- target: x86
docker_arch: 386
qemu: true
python-version: ${{ fromJSON(needs.info.outputs.python_versions) }}
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -297,6 +305,7 @@ jobs:
with:
name: requirements-test.txt
- name: Install Qemu
if: ${{ matrix.platform.qemu || false }}
uses: docker/setup-qemu-action@v3
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v3
Expand Down
11 changes: 8 additions & 3 deletions ci/Dockerfile.alpine
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,22 @@ ARG PYTHON_VERSION=3
FROM python:${PYTHON_VERSION}-alpine

ENV \
UV_SYSTEM_PYTHON=true
UV_SYSTEM_PYTHON=true \
UV_EXTRA_INDEX_URL="https://wheels.home-assistant.io/musllinux-index/"

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

COPY ci/entrypoint.sh /entrypoint.sh

# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
ADD https://astral.sh/uv/install.sh /uv-installer.sh
RUN \
sh /uv-installer.sh \
&& rm /uv-installer.sh \
&& mv /root/.local/bin/uv /bin/uv

COPY requirements-test.txt /requirements-test.txt

RUN \
uv pip install -r /requirements-test.txt
uv pip install --index-strategy unsafe-best-match -r /requirements-test.txt
2 changes: 1 addition & 1 deletion tests/test_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ async def test_MapData(event_bus: EventBus) -> None:
map_data = MapData(event_bus)

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

Expand Down

0 comments on commit ce23139

Please sign in to comment.