6565 - name : Set up Python
6666 uses : actions/setup-python@v5
6767 with :
68- python-version : " 3.12 "
68+ python-version : " 3.13 "
6969
7070 - name : install dependencies
7171 run : python -m pip install cibuildwheel twine
9999 name : ${{ matrix.name }} (torch v${{ matrix.torch-version }})
100100 strategy :
101101 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' ]
103103 arch : ['arm64', 'x86_64']
104104 os : ['ubuntu-22.04', 'ubuntu-22.04-arm', 'macos-13', 'macos-14', 'windows-2022']
105105 exclude :
@@ -113,6 +113,7 @@ jobs:
113113 - {os: macos-13, arch: x86_64, torch-version: '2.3'}
114114 - {os: macos-13, arch: x86_64, torch-version: '2.4'}
115115 - {os: macos-13, arch: x86_64, torch-version: '2.5'}
116+ - {os: macos-13, arch: x86_64, torch-version: '2.6'}
116117 include :
117118 # add `cibw-arch` and `rust-target` to the different configurations
118119 - name : x86_64 Linux
@@ -140,12 +141,22 @@ jobs:
140141 arch : x86_64
141142 rust-target : x86_64-pc-windows-msvc
142143 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"}
149160 steps :
150161 - uses : actions/checkout@v4
151162 with :
@@ -160,14 +171,17 @@ jobs:
160171 - name : Set up Python
161172 uses : actions/setup-python@v5
162173 with :
163- python-version : ${{ matrix.python-version }}
174+ python-version : " 3.13 "
164175
165176 - name : install dependencies
166177 run : python -m pip install cibuildwheel
167178
168179 - name : build manylinux with rust docker image
169180 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 }}
171185
172186 - name : build featomic-torch wheel
173187 run : python -m cibuildwheel python/featomic_torch
@@ -176,8 +190,8 @@ jobs:
176190 CIBW_SKIP : " *musllinux*"
177191 CIBW_ARCHS : ${{ matrix.cibw-arch }}
178192 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
181195 # FEATOMIC_NO_LOCAL_DEPS is set to 1 when building a tag of
182196 # featomic-torch, which will force to use the version of featomic
183197 # already released on PyPI. Otherwise, this will use the version of
@@ -245,7 +259,7 @@ jobs:
245259 - name : Set up Python
246260 uses : actions/setup-python@v5
247261 with :
248- python-version : " 3.12 "
262+ python-version : " 3.13 "
249263
250264 - name : install dependencies
251265 run : python -m pip install twine wheel
@@ -294,7 +308,7 @@ jobs:
294308 - name : Set up Python
295309 uses : actions/setup-python@v5
296310 with :
297- python-version : " 3.12 "
311+ python-version : " 3.13 "
298312
299313 - name : build featomic sdist
300314 run : |
0 commit comments