Skip to content

Commit b0a640f

Browse files
committed
simplify cibuildwheel configuration
1 parent 517537f commit b0a640f

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -64,13 +64,7 @@ jobs:
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,24 +84,16 @@ 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*-*
10591
CIBW_ENABLE: pypy
10692
CIBW_ARCHS_LINUX: auto aarch64
10793
CIBW_BEFORE_BUILD_LINUX: yum install -y libffi-devel
10894
- uses: actions/upload-artifact@v4
10995
with:
110-
name: wheels-${{ matrix.name }}
96+
name: wheels-${{ matrix.os }}
11197
path: ./wheelhouse/*.whl
11298

11399
publish:
@@ -121,15 +107,15 @@ jobs:
121107
path: dist/
122108
- uses: actions/download-artifact@v6
123109
with:
124-
name: wheels-win
110+
name: wheels-windows-latest
125111
path: dist/
126112
- uses: actions/download-artifact@v6
127113
with:
128-
name: wheels-macosx
114+
name: wheels-macos-latest
129115
path: dist/
130116
- uses: actions/download-artifact@v6
131117
with:
132-
name: wheels-manylinux
118+
name: wheels-ubuntu-latest
133119
path: dist/
134120
- name: Publish to PyPI
135121
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/')

0 commit comments

Comments
 (0)