From 05cd0ad7f089765442bf25424dde5aa321324642 Mon Sep 17 00:00:00 2001 From: Kurt McKee Date: Tue, 25 Feb 2025 07:36:46 -0600 Subject: [PATCH] Build wheels for musllinux This is a direct translation of PR #288. It differs in these ways: * Use the matrix "include" syntax (instead of "exclude") * Update the QEMU action setup to be more succinct * Use the musllinux v1.2 image (instead of v1.1) --- .github/workflows/build.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a46c72a..a93f478 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,6 +32,9 @@ jobs: - manylinux_aarch64 - manylinux_i686 - manylinux_x86_64 + - musllinux_aarch64 + - musllinux_i686 + - musllinux_x86_64 - win32 - win_amd64 @@ -44,6 +47,12 @@ jobs: os: ubuntu-latest - platform_id: manylinux_x86_64 os: ubuntu-latest + - platform_id: musllinux_aarch64 + os: ubuntu-latest + - platform_id: musllinux_i686 + os: ubuntu-latest + - platform_id: musllinux_x86_64 + os: ubuntu-latest # macOS - platform_id: macosx_universal2 os: macos-latest @@ -62,13 +71,17 @@ jobs: CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014 CIBW_MANYLINUX_I686_IMAGE: manylinux2014 CIBW_MANYLINUX_AARCH64_IMAGE: manylinux2014 + CIBW_MUSLLINUX_AARCH64_IMAGE: musllinux_1_2 + CIBW_MUSLLINUX_I686_IMAGE: musllinux_1_2 + CIBW_MUSLLINUX_X86_64_IMAGE: musllinux_1_2 steps: - uses: actions/checkout@v4 - name: Set up QEMU if: | - runner.os == 'Linux' && (matrix.platform_id == 'manylinux_aarch64' || matrix.platform_id == 'manylinux_i686') + endsWith(matrix.platform_id, 'linux_aarch64') + || endsWith(matrix.platform_id, 'linux_i686') uses: docker/setup-qemu-action@v3 with: platforms: all