diff --git a/.github/workflows/pypi-build-artifacts.yml b/.github/workflows/pypi-build-artifacts.yml index 088ae09f9e..7125926afb 100644 --- a/.github/workflows/pypi-build-artifacts.yml +++ b/.github/workflows/pypi-build-artifacts.yml @@ -55,6 +55,10 @@ jobs: VERSION: ${{ inputs.VERSION }} run: uv version "${{ env.VERSION }}" + - name: Set up QEMU + if: startsWith(matrix.os, 'ubuntu') + uses: docker/setup-qemu-action@v3 + # Publish the source distribution with the version that's in # the repository, otherwise the tests will fail - name: Compile source distribution @@ -68,8 +72,10 @@ jobs: config-file: "pyproject.toml" env: # Ignore 32 bit architectures - CIBW_ARCHS: "auto64" + CIBW_ARCHS: "auto64 aarch64" CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14" + CIBW_MUSLLINUX_X86_64_IMAGE: "musllinux_1_2" + CIBW_MUSLLINUX_AARCH64_IMAGE: "musllinux_1_2" CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project" CIBW_TEST_COMMAND: "uv run --directory {project} pytest tests/avro/test_decoder.py" # Ignore tests for pypy since not all dependencies are compiled for it diff --git a/.github/workflows/svn-build-artifacts.yml b/.github/workflows/svn-build-artifacts.yml index 56d8f1af6b..5787c6de93 100644 --- a/.github/workflows/svn-build-artifacts.yml +++ b/.github/workflows/svn-build-artifacts.yml @@ -50,6 +50,10 @@ jobs: - name: Install UV uses: astral-sh/setup-uv@v7 + - name: Set up QEMU + if: startsWith(matrix.os, 'ubuntu') + uses: docker/setup-qemu-action@v3 + # Publish the source distribution with the version that's in # the repository, otherwise the tests will fail - name: Compile source distribution @@ -63,8 +67,10 @@ jobs: config-file: "pyproject.toml" env: # Ignore 32 bit architectures - CIBW_ARCHS: "auto64" + CIBW_ARCHS: "auto64 aarch64" CIBW_PROJECT_REQUIRES_PYTHON: ">=3.10,<3.14" + CIBW_MUSLLINUX_X86_64_IMAGE: "musllinux_1_2" + CIBW_MUSLLINUX_AARCH64_IMAGE: "musllinux_1_2" CIBW_BEFORE_TEST: "uv sync --directory {project} --only-group dev --no-install-project" CIBW_TEST_COMMAND: "uv run --directory {project} pytest tests/avro/test_decoder.py" # Ignore tests for pypy since not all dependencies are compiled for it