Skip to content

Commit

Permalink
Also build wheels for musl (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicWink authored Sep 28, 2024
1 parent d316c6f commit e9c433e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,16 @@ on: [workflow_dispatch]

jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }}${{ matrix.musl && ' for musl' || '' }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
musl: [false]
include:
- os: ubuntu-latest
musl: true

steps:
- uses: actions/checkout@v3
Expand All @@ -33,7 +37,9 @@ jobs:
# Platform options
CIBW_ARCHS_MACOS: "x86_64 arm64"
CIBW_PROJECT_REQUIRES_PYTHON: ">=3.7,<3.13"
CIBW_SKIP: "pp* *-musllinux_*" # Skip PyPy and musl.
CIBW_BUILD: ${{ matrix.musl && '*-musllinux_*' || null }}
# musl: skip unsupported by NumPy; not musl: skip PyPy and musl
CIBW_SKIP: ${{ matrix.musl && 'cp37-musllinux_* cp38-musllinux_*' || 'pp* *-musllinux_*' }}
CIBW_MANYLINUX_X86_64_IMAGE: "manylinux2014"
CIBW_ARCHS_LINUX: x86_64 aarch64
# Testing
Expand Down

0 comments on commit e9c433e

Please sign in to comment.