3232 - name : Check metadata
3333 run : pipx run twine check dist/*
3434
35- - uses : actions/upload-artifact@v3
35+ - uses : actions/upload-artifact@v4
3636 with :
37+ name : cibw-sdist
3738 path : dist/*.tar.gz
3839
3940
@@ -43,27 +44,39 @@ jobs:
4344 strategy :
4445 fail-fast : false
4546 matrix :
46- os : [ubuntu-latest, macos-latest , windows-latest]
47+ os : [ubuntu-latest, ubuntu-24.04-arm , windows-latest, macos-14 ]
4748
4849 steps :
4950 - uses : actions/checkout@v4
5051 with :
5152 submodules : true
5253
53- - uses : pypa/cibuildwheel@v2.21.1
54+ - name : Cache cibuildwheel
55+ uses : actions/cache@v4
56+ with :
57+ path : |
58+ ~/Library/Caches/pip
59+ ~/.cache/pip
60+ ~/AppData/Local/pip/Cache
61+ key : cibw-pip-${{ matrix.os }}-${{ hashFiles('pyproject.toml') }}
62+ restore-keys : |
63+ cibw-pip-${{ matrix.os }}-
64+
65+ - uses : pypa/cibuildwheel@v3.3.1
5466 env :
5567 CIBW_ARCHS_MACOS : universal2
56- CIBW_ARCHS_WINDOWS : auto ARM64
68+ CIBW_ARCHS_WINDOWS : AMD64 ARM64
5769 CIBW_BEFORE_BUILD : pip install pytest networkx --prefer-binary
58- CIBW_SKIP : " * musllinux*"
59- CIBW_TEST_SKIP : pp*
70+ CIBW_SKIP : " pp* * musllinux* *_i686 cp314t-win *"
71+ CIBW_TEST_SKIP : " *macosx* *win* *aarch64 cp314t-* "
6072
6173 - name : Verify clean directory
6274 run : git diff --exit-code
6375 shell : bash
6476
65- - uses : actions/upload-artifact@v3
77+ - uses : actions/upload-artifact@v4
6678 with :
79+ name : cibw-wheels-${{ matrix.os }}
6780 path : wheelhouse/*.whl
6881
6982
@@ -77,15 +90,16 @@ jobs:
7790 id-token : write
7891
7992 steps :
80- - uses : actions/setup-python@v4
93+ - uses : actions/setup-python@v5
8194 with :
8295 python-version : " 3.x"
8396
84- - uses : actions/download-artifact@v3
97+ - uses : actions/download-artifact@v4
8598 with :
86- name : artifact
99+ pattern : cibw-*
100+ merge-multiple : true
87101 path : dist
88102
89103 - uses : pypa/gh-action-pypi-publish@release/v1
90104 with :
91- password : ${{ secrets.PYPI_API_TOKEN }}
105+ password : ${{ secrets.pypi_password }}
0 commit comments