@@ -6,7 +6,7 @@ name: cibuildwheel
6
6
# sample.
7
7
8
8
# The full list of cibuildwheel's build targets can be found here:
9
- # https://github.com/pypa/cibuildwheel/blob/v2.16.5 /cibuildwheel/resources/build-platforms.toml
9
+ # https://github.com/pypa/cibuildwheel/blob/v2.21.3 /cibuildwheel/resources/build-platforms.toml
10
10
11
11
# Notes on build targets we (don't) support:
12
12
# - pypy: libtorrent doesn't build with pypy as of writing
@@ -45,22 +45,31 @@ jobs:
45
45
MATRIX_PULL_REQUEST : |
46
46
{
47
47
"include": [
48
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-manylinux_*", "CIBW_ARCHS": "x86_64"},
49
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-musllinux_*", "CIBW_ARCHS": "x86_64"},
50
- {"os": "macos-12", "CIBW_BUILD": "cp39-*", "CIBW_ARCHS": "x86_64"},
51
- {"os": "windows-2022", "CIBW_BUILD": "cp39-*", "CIBW_ARCHS": "AMD64"}
48
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-manylinux_x86_64", "CIBW_ARCHS_LINUX": "x86_64"},
49
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-manylinux_aarch64", "CIBW_ARCHS_LINUX": "aarch64"},
50
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-musllinux_x86_64", "CIBW_ARCHS_LINUX": "x86_64"},
51
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp39-musllinux_aarch64", "CIBW_ARCHS_LINUX": "aarch64"},
52
+ {"os": "macos-12", "CIBW_BUILD": "cp39-macosx_x86_64", "CIBW_ARCHS_MACOS": "x86_64", "MACOSX_DEPLOYMENT_TARGET": "12"},
53
+ {"os": "macos-13", "CIBW_BUILD": "cp39-macosx_x86_64", "CIBW_ARCHS_MACOS": "x86_64", "MACOSX_DEPLOYMENT_TARGET": "13"},
54
+ {"os": "macos-14", "CIBW_BUILD": "cp39-macosx_arm64", "CIBW_ARCHS_MACOS": "arm64", "MACOSX_DEPLOYMENT_TARGET": "14"},
55
+ {"os": "macos-15", "CIBW_BUILD": "cp39-macosx_arm64", "CIBW_ARCHS_MACOS": "arm64", "MACOSX_DEPLOYMENT_TARGET": "15"},
56
+ {"os": "windows-latest", "CIBW_BUILD": "cp39-win32", "CIBW_ARCHS_WINDOWS": "x86"},
57
+ {"os": "windows-latest", "CIBW_BUILD": "cp39-win_amd64", "CIBW_ARCHS_WINDOWS": "AMD64"}
52
58
]
53
59
}
54
60
MATRIX_WORKFLOW_DISPATCH : |
55
61
{
56
62
"include": [
57
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-manylinux_*", "CIBW_ARCHS": "x86_64"},
58
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-manylinux_*", "CIBW_ARCHS": "aarch64"},
59
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-musllinux_*", "CIBW_ARCHS": "x86_64"},
60
- {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-musllinux_*", "CIBW_ARCHS": "aarch64"},
61
- {"os": "macos-12", "CIBW_BUILD": "cp*", "CIBW_ARCHS": "x86_64"},
62
- {"os": "windows-2022", "CIBW_BUILD": "cp*", "CIBW_ARCHS": "x86"},
63
- {"os": "windows-2022", "CIBW_BUILD": "cp*", "CIBW_ARCHS": "AMD64"}
63
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-manylinux_x86_64", "CIBW_ARCHS_LINUX": "x86_64"},
64
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-manylinux_aarch64", "CIBW_ARCHS_LINUX": "aarch64"},
65
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-musllinux_x86_64", "CIBW_ARCHS_LINUX": "x86_64"},
66
+ {"os": "ubuntu-latest", "CIBW_BUILD": "cp*-musllinux_aarch64", "CIBW_ARCHS_LINUX": "aarch64"},
67
+ {"os": "macos-12", "CIBW_BUILD": "cp*-macosx_x86_64", "CIBW_ARCHS_MACOS": "x86_64", "MACOSX_DEPLOYMENT_TARGET": "12"},
68
+ {"os": "macos-13", "CIBW_BUILD": "cp*-macosx_x86_64", "CIBW_ARCHS_MACOS": "x86_64", "MACOSX_DEPLOYMENT_TARGET": "13"},
69
+ {"os": "macos-14", "CIBW_BUILD": "cp*-macosx_arm64", "CIBW_ARCHS_MACOS": "arm64", "MACOSX_DEPLOYMENT_TARGET": "14"},
70
+ {"os": "macos-15", "CIBW_BUILD": "cp*-macosx_arm64", "CIBW_ARCHS_MACOS": "arm64", "MACOSX_DEPLOYMENT_TARGET": "15"},
71
+ {"os": "windows-latest", "CIBW_BUILD": "cp*-win32", "CIBW_ARCHS_WINDOWS": "x86"},
72
+ {"os": "windows-latest", "CIBW_BUILD": "cp*-win_amd64", "CIBW_ARCHS_WINDOWS": "AMD64"}
64
73
]
65
74
}
66
75
87
96
env :
88
97
CIBW_BUILD_VERBOSITY : 1
89
98
CIBW_BUILD : ${{ matrix.CIBW_BUILD }}
90
- CIBW_ARCHS : ${{ matrix.CIBW_ARCHS }}
99
+ CIBW_ARCHS_LINUX : ${{ matrix.CIBW_ARCHS_LINUX }}
100
+ CIBW_ARCHS_WINDOWS : ${{ matrix.CIBW_ARCHS_WINDOWS }}
101
+ CIBW_ARCHS_MACOS : ${{ matrix.CIBW_ARCHS_MACOS }}
102
+ MACOSX_DEPLOYMENT_TARGET : ${{ matrix.MACOSX_DEPLOYMENT_TARGET }}
103
+ CIBW_SKIP : pp*
91
104
CIBW_TEST_SKIP : " *-win32"
92
105
93
106
steps :
@@ -101,50 +114,57 @@ jobs:
101
114
id : cache-wheel
102
115
with :
103
116
path : wheelhouse
104
- key : wheel-${{ matrix.CIBW_BUILD }}-${{ matrix.CIBW_ARCHS }}-${{ github.sha }}
117
+ key : wheel-${{ matrix.os }}-${{ matrix.CIBW_BUILD }}
105
118
106
119
- uses : docker/setup-qemu-action@v3
107
120
if : steps.cache-wheel.outputs.cache-hit != 'true' && runner.os == 'Linux'
108
121
109
-
122
+ - name : Install OpenSSL (win32)
123
+ if : ${{ endsWith(matrix.CIBW_BUILD, 'win32') }}
124
+ run : |
125
+ Remove-Item -Path "C:\Program Files\OpenSSL" -Force -Recurse
126
+ vcpkg install openssl:x86-windows
127
+ New-Item -Path "C:\Program Files\OpenSSL" -ItemType SymbolicLink -Value "C:\vcpkg\packages\openssl_x86-windows\"
128
+
129
+
110
130
if : steps.cache-wheel.outputs.cache-hit != 'true'
111
131
112
- - uses : actions/upload-artifact@v3
132
+ - uses : actions/upload-artifact@v4
113
133
with :
114
134
path : wheelhouse/*.whl
115
- name : wheels
135
+ name : wheels-${{ matrix.os }}-${{ matrix.CIBW_BUILD }}
116
136
117
137
upload_pypi :
118
138
needs : build_wheels
119
139
runs-on : ubuntu-latest
120
140
if : needs.build_wheels.result == 'success' && github.event.inputs.publish == 'PUBLISH'
121
141
122
142
steps :
123
- - uses : actions/download-artifact@v3
143
+ - uses : actions/download-artifact@v4
124
144
with :
125
- name : wheels
145
+ name : wheels-${{ matrix.os }}-${{ matrix.CIBW_BUILD }}
126
146
path : wheelhouse
127
147
128
148
- uses : pypa/gh-action-pypi-publish@release/v1
129
149
with :
130
150
password : ${{ secrets.PYPI_API_TOKEN }}
131
- packages_dir : wheelhouse
132
- skip_existing : true
151
+ packages-dir : wheelhouse
152
+ skip-existing : true
133
153
134
154
upload_pypi_test :
135
155
needs : build_wheels
136
156
runs-on : ubuntu-latest
137
157
if : needs.build_wheels.result == 'success' && github.event.inputs.publish_test == 'PUBLISH_TEST'
138
158
139
159
steps :
140
- - uses : actions/download-artifact@v3
160
+ - uses : actions/download-artifact@v4
141
161
with :
142
- name : wheels
162
+ name : wheels-${{ matrix.os }}-${{ matrix.CIBW_BUILD }}
143
163
path : wheelhouse
144
164
145
165
- uses : pypa/gh-action-pypi-publish@release/v1
146
166
with :
147
167
password : ${{ secrets.TEST_PYPI_API_TOKEN }}
148
- packages_dir : wheelhouse
149
- skip_existing : true
168
+ packages-dir : wheelhouse
169
+ skip-existing : true
150
170
repository_url : https://test.pypi.org/legacy/
0 commit comments