Skip to content

Commit 2eeb1d2

Browse files
authored
fixs(workflows): Fix cuda 13 windows build
1 parent a1e851f commit 2eeb1d2

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/build-extended-artifacts.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ jobs:
124124
restore-keys: |
125125
windows-cargo-
126126
127+
- name: Set up Python
128+
uses: actions/setup-python@v5
129+
if: matrix.cuda == '13.0.2'
130+
with:
131+
python-version: '3.x'
132+
127133
- name: Install CUDA Toolkit ${{ matrix.cuda }}
128134
uses: Jimver/cuda-toolkit@v0.2.29
129135
with:
@@ -135,7 +141,7 @@ jobs:
135141
if: matrix.cuda == '13.0.2'
136142
shell: pwsh
137143
run: |
138-
python - <<'PY'
144+
$pythonCode = @"
139145
from pathlib import Path
140146
141147
path = Path('Cargo.toml')
@@ -149,7 +155,8 @@ jobs:
149155
text = text.replace(stable_core, git_core, 1)
150156
text = text.replace(stable_nn, git_nn, 1)
151157
path.write_text(text)
152-
PY
158+
"@
159+
python -c $pythonCode
153160
154161
- name: Upgrade Candle to git tip for CUDA 13
155162
if: matrix.cuda == '13.0.2'

0 commit comments

Comments
 (0)