11name : Build
2-
32on :
43 push :
54 pull_request :
65 workflow_dispatch :
76 release :
87 types : [published]
9-
108jobs :
119 build_wheels :
1210 name : Build wheels on ${{ matrix.os }}
@@ -18,18 +16,15 @@ jobs:
1816 ubuntu-latest,
1917 ubuntu-24.04-arm,
2018 windows-latest,
21- macos-13,
22- macos-14,
23- macos-latest,
19+ macos-13, # intel x86_64
20+ # macos-14,
21+ macos-latest, # arm 64
2422 ]
25-
2623 steps :
2724 - uses : actions/checkout@v5
28-
2925 - name : Clone robinhood
3026 run : |
3127 git clone https://github.com/martinus/robin-hood-hashing robinhood
32-
3328 - name : Build wheels
34293530 env :
@@ -38,30 +33,26 @@ jobs:
3833 CIBW_TEST_REQUIRES : pytest
3934 CIBW_TEST_COMMAND : " pytest {project}/tests"
4035 CIBW_TEST_SKIP : " *win32 *musllinux* cp314t-*"
41-
4236 - uses : actions/upload-artifact@v5
4337 with :
4438 name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
4539 path : ./wheelhouse/*.whl
46-
40+
4741 build_sdist :
4842 name : Build source distribution
4943 runs-on : ubuntu-latest
5044 steps :
5145 - uses : actions/checkout@v5
52-
5346 - name : Clone robinhood
5447 run : |
5548 git clone https://github.com/martinus/robin-hood-hashing robinhood
56-
5749 - name : Build sdist
5850 run : pipx run build --sdist
59-
6051 - uses : actions/upload-artifact@v5
6152 with :
6253 name : cibw-sdist
6354 path : dist/*.tar.gz
64-
55+
6556 upload_pypi :
6657 name : Upload release to PyPI
6758 needs : [build_wheels, build_sdist]
@@ -71,13 +62,12 @@ jobs:
7162 url : https://pypi.org/p/ripser
7263 permissions :
7364 id-token : write
65+ # Only run on actual releases
7466 if : github.event_name == 'release' && github.event.action == 'published'
7567 steps :
7668 - uses : actions/download-artifact@v5
7769 with :
78- # unpacks all CIBW artifacts into dist/
7970 pattern : cibw-*
8071 path : dist
8172 merge-multiple : true
82-
83- - uses : pypa/gh-action-pypi-publish@release/v1
73+ - uses : pypa/gh-action-pypi-publish@release/v1
0 commit comments