65
65
- name : Set up Python
66
66
uses : actions/setup-python@v5
67
67
with :
68
- python-version : " 3.12 "
68
+ python-version : " 3.13 "
69
69
70
70
- name : install dependencies
71
71
run : python -m pip install cibuildwheel twine
99
99
name : ${{ matrix.name }} (torch v${{ matrix.torch-version }})
100
100
strategy :
101
101
matrix :
102
- torch-version : ['2.1', '2.2', '2.3', '2.4', '2.5']
102
+ torch-version : ['2.1', '2.2', '2.3', '2.4', '2.5', '2.6' ]
103
103
arch : ['arm64', 'x86_64']
104
104
os : ['ubuntu-22.04', 'ubuntu-22.04-arm', 'macos-13', 'macos-14', 'windows-2022']
105
105
exclude :
@@ -113,6 +113,7 @@ jobs:
113
113
- {os: macos-13, arch: x86_64, torch-version: '2.3'}
114
114
- {os: macos-13, arch: x86_64, torch-version: '2.4'}
115
115
- {os: macos-13, arch: x86_64, torch-version: '2.5'}
116
+ - {os: macos-13, arch: x86_64, torch-version: '2.6'}
116
117
include :
117
118
# add `cibw-arch` and `rust-target` to the different configurations
118
119
- name : x86_64 Linux
@@ -140,12 +141,22 @@ jobs:
140
141
arch : x86_64
141
142
rust-target : x86_64-pc-windows-msvc
142
143
cibw-arch : AMD64
143
- # add the right python version for each torch version
144
- - {torch-version: '2.1', python-version: '3.11', cibw-python: 'cp311-*'}
145
- - {torch-version: '2.2', python-version: '3.12', cibw-python: 'cp312-*'}
146
- - {torch-version: '2.3', python-version: '3.12', cibw-python: 'cp312-*'}
147
- - {torch-version: '2.4', python-version: '3.12', cibw-python: 'cp312-*'}
148
- - {torch-version: '2.5', python-version: '3.12', cibw-python: 'cp312-*'}
144
+ # add the right python version image for each torch version
145
+ - {torch-version: '2.1', cibw-python: 'cp311-*'}
146
+ - {torch-version: '2.2', cibw-python: 'cp312-*'}
147
+ - {torch-version: '2.3', cibw-python: 'cp312-*'}
148
+ - {torch-version: '2.4', cibw-python: 'cp312-*'}
149
+ - {torch-version: '2.5', cibw-python: 'cp312-*'}
150
+ - {torch-version: '2.6', cibw-python: 'cp312-*'}
151
+ # set the right manylinux image to use
152
+ - {torch-version: '2.1', manylinux-version: "2014"}
153
+ - {torch-version: '2.2', manylinux-version: "2014"}
154
+ - {torch-version: '2.3', manylinux-version: "2014"}
155
+ - {torch-version: '2.4', manylinux-version: "2014"}
156
+ - {torch-version: '2.5', manylinux-version: "2014"}
157
+ # only torch >+ 2.6 on arm64-linux needs the newer manylinux
158
+ - {torch-version: '2.6', arch: arm64, manylinux-version: "_2_28"}
159
+ - {torch-version: '2.6', arch: x86_64, manylinux-version: "2014"}
149
160
steps :
150
161
- uses : actions/checkout@v4
151
162
with :
@@ -160,14 +171,17 @@ jobs:
160
171
- name : Set up Python
161
172
uses : actions/setup-python@v5
162
173
with :
163
- python-version : ${{ matrix.python-version }}
174
+ python-version : " 3.13 "
164
175
165
176
- name : install dependencies
166
177
run : python -m pip install cibuildwheel
167
178
168
179
- name : build manylinux with rust docker image
169
180
if : matrix.os == 'ubuntu-22.04' || matrix.os == 'ubuntu-22.04-arm'
170
- run : docker buildx build -t rustc-manylinux2014_${{ matrix.cibw-arch }} python/scripts/rustc-manylinux2014_${{ matrix.cibw-arch }}
181
+ run : |
182
+ docker buildx build \
183
+ -t rustc-manylinux${{ matrix.manylinux-version }}_${{ matrix.cibw-arch }} \
184
+ python/scripts/rustc-manylinux${{ matrix.manylinux-version }}_${{ matrix.cibw-arch }}
171
185
172
186
- name : build featomic-torch wheel
173
187
run : python -m cibuildwheel python/featomic_torch
@@ -176,8 +190,8 @@ jobs:
176
190
CIBW_SKIP : " *musllinux*"
177
191
CIBW_ARCHS : ${{ matrix.cibw-arch }}
178
192
CIBW_BUILD_VERBOSITY : 1
179
- CIBW_MANYLINUX_X86_64_IMAGE : rustc-manylinux2014_x86_64
180
- CIBW_MANYLINUX_AARCH64_IMAGE : rustc-manylinux2014_aarch64
193
+ CIBW_MANYLINUX_X86_64_IMAGE : rustc-manylinux${{ matrix.manylinux-version }}_x86_64
194
+ CIBW_MANYLINUX_AARCH64_IMAGE : rustc-manylinux${{ matrix.manylinux-version }}_aarch64
181
195
# FEATOMIC_NO_LOCAL_DEPS is set to 1 when building a tag of
182
196
# featomic-torch, which will force to use the version of featomic
183
197
# already released on PyPI. Otherwise, this will use the version of
@@ -245,7 +259,7 @@ jobs:
245
259
- name : Set up Python
246
260
uses : actions/setup-python@v5
247
261
with :
248
- python-version : " 3.12 "
262
+ python-version : " 3.13 "
249
263
250
264
- name : install dependencies
251
265
run : python -m pip install twine wheel
@@ -294,7 +308,7 @@ jobs:
294
308
- name : Set up Python
295
309
uses : actions/setup-python@v5
296
310
with :
297
- python-version : " 3.12 "
311
+ python-version : " 3.13 "
298
312
299
313
- name : build featomic sdist
300
314
run : |
0 commit comments