File tree Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Expand file tree Collapse file tree 1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change 6565
6666 ./install_requirements.sh > /dev/null
6767 cmake --preset ${{ matrix.preset }}
68- cmake --build cmake-out -j$(( $(nproc) - 1 ))
68+
69+ windows :
70+ uses : pytorch/test-infra/.github/workflows/windows_job.yml@main
71+ strategy :
72+ fail-fast : false
73+ matrix :
74+ preset : [pybind]
75+ with :
76+ job-name : build
77+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
78+ submodules : recursive
79+ timeout : 90
80+ script : |
81+ set -eux
82+ conda init powershell
83+ powershell -Command "& {
84+ \$ErrorActionPreference = 'Stop'
85+ Set-PSDebug -Trace 1
86+
87+ conda create --yes --quiet -n et python=3.12
88+ conda activate et
89+
90+ python install_requirements.py
91+ cmake --preset ${{ matrix.preset }}
92+ \$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
93+ cmake --build cmake-out -j \$numCores
94+ }"
You can’t perform that action at this time.
0 commit comments