@@ -15,33 +15,43 @@ concurrency:
1515
1616jobs :
1717 build_wheels :
18- name : Build wheels on ${{ matrix.os }}
18+ name : ${{ matrix.os }} ${{ matrix.python-version }}
1919 runs-on : ${{ matrix.os }}
2020 strategy :
2121 fail-fast : false
2222 matrix :
2323 os : [ubuntu-latest, windows-latest]
24+ python-version : ["cp37", "cp38", "cp39", "cp310", "cp311", "cp312"]
2425
2526 steps :
26- - uses : actions/checkout@v2
27+ - uses : actions/checkout@v4
2728
2829 # see https://cibuildwheel.readthedocs.io/en/stable/changelog/
2930 # for a list of versions
3031 - name : Build wheels
31- uses : pypa/cibuildwheel@v2.11.4
32+ uses : pypa/cibuildwheel@v2.16.5
3233 env :
33- CIBW_SKIP : " cp27-* cp35-* *-win32 pp* *-musllinux*"
34+ CIBW_BUILD : " ${{ matrix.python-version}}-* "
35+ CIBW_SKIP : " cp27-* cp35-* cp36-* *-win32 pp* *-musllinux* *-manylinux_i686"
3436 CIBW_BUILD_VERBOSITY : 3
3537
3638 - name : Display wheels
3739 shell : bash
3840 run : |
3941 ls -lh ./wheelhouse/
4042
41- - uses : actions/upload-artifact@v2
43+ - uses : actions/upload-artifact@v4
4244 with :
45+ name : wheel-${{ matrix.os }}-${{ matrix.python-version }}
4346 path : ./wheelhouse/*.whl
4447
48+ - name : Build sdist
49+ if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
50+ shell : bash
51+ run : |
52+ python3 setup.py sdist
53+ ls -lh dist/*
54+
4555 - name : Publish wheels to PyPI
4656 env :
4757 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
5363
5464 twine upload ./wheelhouse/*.whl
5565
56- - name : Build sdist
57- if : ${{ matrix.os == 'ubuntu-latest' }}
58- shell : bash
59- run : |
60- python3 setup.py sdist
61- ls -lh dist/*
6266
6367 - name : Publish sdist to PyPI
64- if : ${{ matrix.os == 'ubuntu-latest' }}
68+ if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
6569 env :
6670 TWINE_USERNAME : ${{ secrets.PYPI_USERNAME }}
6771 TWINE_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
0 commit comments