Skip to content

Commit 5d39a3a

Browse files
authored
build(ci): fix free-threaded wheel builds on Windows via maturin (#560)
1 parent e85ac65 commit 5d39a3a

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -187,27 +187,27 @@ jobs:
187187
path: dist
188188

189189
windows:
190-
runs-on: ${{ matrix.platform.runner }}
190+
runs-on: windows-latest
191191
environment: Windows
192192
strategy:
193193
matrix:
194194
build_type:
195195
- name: standard
196-
maturin_args: "--find-interpreter"
196+
maturin_args: ""
197+
cargo_args: ""
197198
- name: free-threaded
198199
maturin_args: "--interpreter 3.13t 3.14t"
200+
cargo_args: "--no-default-features"
199201
platform:
200-
- runner: windows-latest
201-
target: x64
202+
- target: x64
202203
allocator: mimalloc
203204
python-architecture: x64
204-
- runner: windows-latest
205-
target: x86
205+
- target: x86
206206
allocator: mimalloc
207207
python-architecture: x86
208-
- runner: windows-latest
209-
target: aarch64
208+
- target: aarch64
210209
allocator: mimalloc
210+
python-architecture: x64
211211
steps:
212212
- uses: actions/checkout@v6
213213
- uses: actions/setup-python@v6
@@ -223,7 +223,7 @@ jobs:
223223
with:
224224
maturin-version: ${{ env.MATURIN_VERSION }}
225225
target: ${{ matrix.platform.target }}
226-
args: --release --out dist ${{ matrix.platform.target != 'aarch64' && matrix.build_type.maturin_args || '' }} --features ${{ matrix.platform.allocator || '' }}
226+
args: --release --out dist ${{ matrix.build_type.maturin_args || '' }} ${{ matrix.build_type.cargo_args }} --features ${{ matrix.platform.allocator || '' }}
227227
sccache: "false"
228228
- name: Upload wheels
229229
uses: actions/upload-artifact@v7

0 commit comments

Comments
 (0)