@@ -36,17 +36,21 @@ jobs:
3636 runs-on : ${{ matrix.os }}
3737 strategy :
3838 matrix :
39- os : [ubuntu-latest, macos-latest, windows-latest]
39+ os : [macos-latest] # [ ubuntu-latest, macos-latest, windows-latest]
4040
4141 steps :
4242 - uses : actions/checkout@v4
4343 with :
4444 submodules : true
4545
46- - uses : astral-sh/setup-uv@v4
46+ # - uses: astral-sh/setup-uv@v4
47+ - uses : actions/setup-python@v5
48+ with :
49+ python-version : " 3.x"
50+
4751
4852 - name : Build wheels
49- uses : pypa/cibuildwheel@v2.22
53+ uses : pypa/cibuildwheel@v2.16.5
5054 env :
5155 CIBW_ARCHS_LINUX : auto
5256 CIBW_ARCHS_MACOS : x86_64 universal2 arm64
@@ -64,18 +68,17 @@ jobs:
6468 name : Upload release to PyPI
6569 needs : [build_wheels, build_sdist]
6670 runs-on : ubuntu-latest
67- # if: github.ref == 'refs/heads/main'
68- # if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
71+ if : github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
6972 environment :
7073 name : testpypi #
7174 url : https://pypi.org/p/cripser
7275 permissions :
7376 id-token : write
7477
7578 steps :
76- - uses : actions/setup-python@v5
77- with :
78- python-version : " 3.x"
79+ # - uses: actions/setup-python@v5
80+ # with:
81+ # python-version: "3.x"
7982
8083 - uses : actions/download-artifact@v4
8184 with :
8487 path : dist
8588 - uses : actions/download-artifact@v4
8689 with :
87- name : wheels-ubuntu-latest
88- path : dist/ubuntu
89- - uses : actions/download-artifact@v4
90- with :
91- name : wheels-macos-latest
92- path : dist/macos
93- - uses : actions/download-artifact@v4
94- with :
95- name : wheels-windows-latest
96- path : dist/windows
90+ pattern : wheels-*
91+ merge-multiple : true
92+ path : dist
9793
9894 - uses : pypa/gh-action-pypi-publish@release/v1
9995 with :
0 commit comments