Skip to content

Commit fc4d14d

Browse files
authored
Add musllinux wheels (#106)
1 parent 98394c7 commit fc4d14d

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/wheels.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737

3838

3939
build_wheels:
40-
name: Wheels - ${{ matrix.cibw_archs }} - ${{ matrix.os }}
40+
name: Wheels - ${{ matrix.cibw_archs }} ${{ matrix.arch_note}} - ${{ matrix.os }}
4141
runs-on: ${{ matrix.os }}
4242
env:
4343
# graphblas version to use if another one is not provided
@@ -50,12 +50,22 @@ jobs:
5050
- os: windows-latest
5151
cibw_archs: "auto64"
5252

53-
# Linux x86
53+
# Linux x86 manylinux
5454
- os: ubuntu-latest
5555
cibw_archs: "x86_64"
56+
# Python 3.12 wheel requires libffi-devel to be installed. manylinux container uses yum
57+
cibw_before_build_linux: "yum install -y libffi-devel"
5658
# skip musllinux
5759
cibw_skip: "*musl*"
5860

61+
# Linux x86 musllinux
62+
# Separate runner for a Musl build of graphblas. The glibc build is not guaranteed to be compatible.
63+
- os: ubuntu-latest
64+
cibw_archs: "x86_64"
65+
arch_note: "musl"
66+
# skip manylinux (built elsewhere), PyPy (no musl numpy wheels), CPython 3.8 (no musl numpy wheels)
67+
cibw_skip: "*many* pp* cp38*"
68+
5969
# Linux aarch64
6070
# Separate runner because this requires emulation (only x86 runners are available) and is very slow.
6171
- os: ubuntu-latest
@@ -133,8 +143,7 @@ jobs:
133143
# Build SuiteSparse
134144
CIBW_BEFORE_ALL: bash suitesparse.sh ${{ env.GB_VERSION_REF }}
135145

136-
# Install FFI dev library, needed for Python 3.12
137-
CIBW_BEFORE_BUILD_LINUX: yum install -y libffi-devel
146+
CIBW_BEFORE_BUILD_LINUX: ${{ matrix.cibw_before_build_linux }}
138147

139148
CIBW_ENVIRONMENT_PASS_LINUX: SUITESPARSE_FAST_BUILD SUITESPARSE_FASTEST_BUILD
140149

0 commit comments

Comments
 (0)