Skip to content

Commit 0e3aed9

Browse files
committed
chore: fix windows ci issue
1 parent 2e347ee commit 0e3aed9

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

.github/workflows/ci.yml

+27-2
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,38 @@ jobs:
181181
if: matrix.os == 'windows-latest'
182182
run: |
183183
Add-Content $env:GITHUB_PATH "$(pwd)/stan/lib/stan_math/lib/tbb"
184-
- name: Build wheels
184+
# Separate build steps for each Python version to avoid issues with pyo3 0.23.4
185+
- name: Build wheels 3.10
185186
uses: PyO3/maturin-action@v1
186187
env:
187188
LIBCLANG_PATH: ${{ runner.temp }}/llvm/lib
188189
with:
189190
target: ${{ matrix.platform.target }}
190-
args: --release --out dist --find-interpreter
191+
args: --release --out dist --interpreter 3.10
192+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
193+
- name: Build wheels 3.11
194+
uses: PyO3/maturin-action@v1
195+
env:
196+
LIBCLANG_PATH: ${{ runner.temp }}/llvm/lib
197+
with:
198+
target: ${{ matrix.platform.target }}
199+
args: --release --out dist --interpreter 3.11
200+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
201+
- name: Build wheels 3.12
202+
uses: PyO3/maturin-action@v1
203+
env:
204+
LIBCLANG_PATH: ${{ runner.temp }}/llvm/lib
205+
with:
206+
target: ${{ matrix.platform.target }}
207+
args: --release --out dist --interpreter 3.12
208+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
209+
- name: Build wheels 3.13
210+
uses: PyO3/maturin-action@v1
211+
env:
212+
LIBCLANG_PATH: ${{ runner.temp }}/llvm/lib
213+
with:
214+
target: ${{ matrix.platform.target }}
215+
args: --release --out dist --interpreter 3.13
191216
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }}
192217
- name: Upload wheels
193218
uses: actions/upload-artifact@v4

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ indicatif = "0.17.8"
4141
tch = { version = "0.19.0", optional = true }
4242

4343
[dependencies.pyo3]
44-
version = "0.23.3"
44+
version = "0.23.4"
4545
features = ["extension-module", "anyhow"]
4646

4747
[dev-dependencies]

0 commit comments

Comments
 (0)