@@ -26,27 +26,36 @@ jobs:
26
26
27
27
steps :
28
28
- uses : actions/checkout@v4
29
+ with :
30
+ fetch-depth : 0
29
31
30
32
- name : Set up Python
31
33
uses : actions/setup-python@v5
32
34
with :
33
35
python-version : ' 3.12'
34
36
35
37
- name : Install cibuildwheel
36
- run : python3 -m pip install cibuildwheel==2.16.2
38
+ run : python3 -m pip install cibuildwheel==2.16.5
37
39
38
40
- name : Build wheels
39
41
run : python3 -m cibuildwheel --output-dir wheelhouse wrappers/python
40
42
env :
41
- CIBW_BUILD : cp38-* cp39-* cp310-* cp311-* cp312-*
43
+ # CIBW_BUILD: cp39-* cp310-* cp311-* cp312-*
44
+ CIBW_BUILD : cp39-*
42
45
CIBW_SKIP : " *musllinux*"
43
46
# the default maylinux2014 image does not contain a c++20 compiler, see https://github.com/pypa/manylinux
44
47
CIBW_MANYLINUX_X86_64_IMAGE : quay.io/pypa/manylinux_2_28_x86_64
48
+ # CIBW_ARCHS_MACOS: "x86_64 arm64"
45
49
CIBW_ARCHS_MACOS : universal2
46
50
CIBW_ENVIRONMENT_MACOS : CMAKE_OSX_ARCHITECTURES="arm64;x86_64"
51
+ # the default macOS target version is 10.9 which does not support c++20 coroutines
52
+ MACOSX_DEPLOYMENT_TARGET : " 10.13"
53
+ CIBW_BUILD_VERBOSITY : 1
47
54
48
- - uses : actions/upload-artifact@v3 # v4 breaks the build, see https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
55
+ - name : Upload wheels
56
+ uses : actions/upload-artifact@v4 # v4 breaks the build, see https://github.com/actions/upload-artifact/blob/main/docs/MIGRATION.md
49
57
with :
58
+ name : cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
50
59
path : ./wheelhouse/*.whl
51
60
52
61
build-sdist :
55
64
steps :
56
65
- uses : actions/checkout@v4
57
66
with :
58
- submodules : recursive
67
+ fetch-depth : 0
59
68
60
69
- name : Set up Python
61
70
uses : actions/setup-python@v5
70
79
working-directory : wrappers/python
71
80
run : python3 setup.py sdist
72
81
73
- - uses : actions/upload-artifact@v3
82
+ - name : Upload sdist
83
+ uses : actions/upload-artifact@v4
74
84
with :
85
+ name : cibw-sdist
75
86
path : wrappers/python/dist/*.tar.gz
76
87
77
88
upload-pypi :
@@ -89,8 +100,12 @@ jobs:
89
100
steps :
90
101
- uses : actions/download-artifact@v4
91
102
with :
92
- name : artifact
103
+ pattern : cibw-*
93
104
path : dist
105
+ merge-multiple : true
106
+
107
+ - name : List wheels
108
+ run : ls dist
94
109
95
110
- uses : pypa/gh-action-pypi-publish@release/v1
96
111
# with:
0 commit comments