Skip to content

Commit 1f28e37

Browse files
committed
Use ninja 1.12.0
Signed-off-by: Pavel Chekin <[email protected]>
1 parent 8d04329 commit 1f28e37

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/wheels-pytorch.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ jobs:
8383
New-Item -ItemType Directory -Force -Path ${{ env.NEW_WORKSPACE }}\tmp
8484
8585
cd pytorch
86+
87+
# We need ninja >= 1.12.0 to support long names on Windows. At the moment there is no required
88+
# version in pypi, so instead of installing ninja with pip we use a preinstalled 1.12.1 on the
89+
# runner.
90+
Set-Content -Path pyproject.toml -Value (get-content -Path pyproject.toml | Select-String -Pattern '"ninja"' -NotMatch)
91+
8692
# Required to build on Windows
8793
$env:CMAKE_SHARED_LINKER_FLAGS = "/FORCE:MULTIPLE"
8894
$env:CMAKE_MODULE_LINKER_FLAGS = "/FORCE:MULTIPLE"

0 commit comments

Comments
 (0)