15
15
name : Build SDist
16
16
runs-on : ubuntu-latest
17
17
steps :
18
- - uses : actions/checkout@v3
18
+ - uses : actions/checkout@v4
19
19
with :
20
20
submodules : true
21
21
@@ -39,25 +39,31 @@ jobs:
39
39
os : [ubuntu-latest, windows-latest, macos-latest]
40
40
41
41
steps :
42
- - uses : actions/checkout@v3
42
+ - uses : actions/checkout@v4
43
43
with :
44
44
submodules : true
45
+ # Used to host cibuildwheel
46
+ - uses : actions/setup-python@v5
45
47
46
-
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
47
53
env :
48
54
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
54
57
55
58
- name : Verify clean directory
56
59
run : git diff --exit-code
57
60
shell : bash
58
61
62
+ - name : List files
63
+ run : ls -la wheelhouse
64
+
59
65
- name : Upload wheels
60
- uses : actions/upload-artifact@v3
66
+ uses : actions/upload-artifact@v3 # v4 does not support overwriting artifacts anymore.
61
67
with :
62
68
path : wheelhouse/*.whl
63
69
@@ -69,11 +75,11 @@ jobs:
69
75
if : github.event_name == 'release' && github.event.action == 'published'
70
76
71
77
steps :
72
- - uses : actions/setup-python@v4
78
+ - uses : actions/setup-python@v5
73
79
with :
74
80
python-version : " 3.x"
75
81
76
- - uses : actions/download-artifact@v3
82
+ - uses : actions/download-artifact@v4
77
83
with :
78
84
name : artifact
79
85
path : dist
0 commit comments