5555 pip install build
5656 python -m build --sdist
5757 - name : Upload source package
58- uses : actions/upload-artifact@v4
58+ uses : actions/upload-artifact@v5
5959 with :
6060 name : sdist
6161 path : dist/
6464 runs-on : ${{ matrix.os }}
6565 strategy :
6666 matrix :
67- include :
68- - name : manylinux
69- os : ubuntu-latest
70- - name : macosx
71- os : macos-latest
72- - name : win
73- os : windows-latest
67+ os : [ubuntu-latest, macos-latest, windows-latest]
7468
7569 steps :
7670 - uses : actions/checkout@v5
@@ -90,46 +84,39 @@ jobs:
9084 with :
9185 platforms : all
9286
93- - name : Build wheels for Windows # see issue #174
94- if : runner.os == 'Windows'
95- run : python -m cibuildwheel --output-dir wheelhouse
96- env :
97- CIBW_BUILD : cp38-${{ matrix.name }}* pp*-${{ matrix.name }}*
98- CIBW_ENABLE : pypy
99-
100- - name : Build wheels for Linux and macOS
101- if : runner.os != 'Windows'
87+ - name : Build wheels
10288 run : python -m cibuildwheel --output-dir wheelhouse
10389 env :
104- CIBW_BUILD : cp38-${{ matrix.name }}* pp*-${{ matrix.name }}*
90+ CIBW_BUILD : cp38-* pp*-*
91+ CIBW_SKIP : " *musllinux*"
10592 CIBW_ENABLE : pypy
10693 CIBW_ARCHS_LINUX : auto aarch64
10794 CIBW_BEFORE_BUILD_LINUX : yum install -y libffi-devel
10895 - uses : actions/upload-artifact@v4
10996 with :
110- name : wheels-${{ matrix.name }}
97+ name : wheels-${{ matrix.os }}
11198 path : ./wheelhouse/*.whl
11299
113100 publish :
114101 runs-on : ubuntu-latest
115102 needs : [lint, test, package-sdist, package-wheel]
116103 steps :
117104 - uses : actions/checkout@v5
118- - uses : actions/download-artifact@v5
105+ - uses : actions/download-artifact@v6
119106 with :
120107 name : sdist
121108 path : dist/
122- - uses : actions/download-artifact@v5
109+ - uses : actions/download-artifact@v6
123110 with :
124- name : wheels-win
111+ name : wheels-windows-latest
125112 path : dist/
126- - uses : actions/download-artifact@v5
113+ - uses : actions/download-artifact@v6
127114 with :
128- name : wheels-macosx
115+ name : wheels-macos-latest
129116 path : dist/
130- - uses : actions/download-artifact@v5
117+ - uses : actions/download-artifact@v6
131118 with :
132- name : wheels-manylinux
119+ name : wheels-ubuntu-latest
133120 path : dist/
134121 - name : Publish to PyPI
135122 if : github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')
0 commit comments