Skip to content

Commit 28eec02

Browse files
committed
Update cibuildwheels to 2.21.3 and gh actions to checkout, artifacts to v4 and and python to v5
v3 are going to be removed soon (nov 30): https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/
1 parent bfa4e6f commit 28eec02

File tree

1 file changed

+17
-11
lines changed

1 file changed

+17
-11
lines changed

.github/workflows/wheels.yml

+17-11
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Build SDist
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@v3
18+
- uses: actions/checkout@v4
1919
with:
2020
submodules: true
2121

@@ -39,25 +39,31 @@ jobs:
3939
os: [ubuntu-latest, windows-latest, macos-latest]
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
with:
4444
submodules: true
45+
# Used to host cibuildwheel
46+
- uses: actions/setup-python@v5
4547

46-
- uses: pypa/[email protected]
48+
- name: Install cibuildwheel
49+
run: python -m pip install cibuildwheel==2.21.3
50+
51+
- name: Build wheels
52+
run: python -m cibuildwheel --output-dir wheelhouse
4753
env:
4854
CIBW_ARCHS_MACOS: auto universal2
49-
CIBW_REPAIR_WHEEL_COMMAND_MACOS: ""
50-
CIBW_REPAIR_WHEEL_COMMAND_LINUX: ""
51-
# Repair windows wheel
52-
# CIBW_BEFORE_BUILD_WINDOWS: "pip install delvewheel"
53-
# CIBW_REPAIR_WHEEL_COMMAND_WINDOWS: "delvewheel repair -w {dest_dir} {wheel}"
55+
# use default repair command on linux and macos
56+
# for windows setup.py repairwheel step should solve it
5457

5558
- name: Verify clean directory
5659
run: git diff --exit-code
5760
shell: bash
5861

62+
- name: List files
63+
run: ls -la wheelhouse
64+
5965
- name: Upload wheels
60-
uses: actions/upload-artifact@v3
66+
uses: actions/upload-artifact@v3 # v4 does not support overwriting artifacts anymore.
6167
with:
6268
path: wheelhouse/*.whl
6369

@@ -69,11 +75,11 @@ jobs:
6975
if: github.event_name == 'release' && github.event.action == 'published'
7076

7177
steps:
72-
- uses: actions/setup-python@v4
78+
- uses: actions/setup-python@v5
7379
with:
7480
python-version: "3.x"
7581

76-
- uses: actions/download-artifact@v3
82+
- uses: actions/download-artifact@v4
7783
with:
7884
name: artifact
7985
path: dist

0 commit comments

Comments
 (0)