File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 6666 ./install_requirements.sh > /dev/null
6767 cmake --preset ${{ matrix.preset }}
6868 cmake --build cmake-out --parallel
69+
70+ windows :
71+ uses : pytorch/test-infra/.github/workflows/windows_job.yml@main
72+ strategy :
73+ fail-fast : false
74+ matrix :
75+ preset : [pybind]
76+ with :
77+ job-name : build
78+ ref : ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
79+ submodules : recursive
80+ timeout : 90
81+ script : |
82+ set -eux
83+ powershell -Command "& {
84+ \$ErrorActionPreference = 'Stop'
85+ Set-PSDebug -Trace 1
86+ C:\Jenkins\Miniconda3\Scripts\conda.exe init powershell
87+ }"
88+ if [ $? -ne 0 ]; then
89+ echo -e "\033[31merror: command failed, look up 👆\033[0m"
90+ exit 1
91+ fi
92+
93+ powershell -Command "& {
94+ \$ErrorActionPreference = 'Stop'
95+ Set-PSDebug -Trace 1
96+ conda create --yes --quiet -n et python=3.12
97+ conda activate et
98+ python install_requirements.py
99+ cmake --preset ${{ matrix.preset }}
100+ cmake --build cmake-out --parallel
101+ }"
102+ if [ $? -ne 0 ]; then
103+ echo -e "\033[31merror: command failed, look up 👆\033[0m"
104+ exit 1
105+ fi
You can’t perform that action at this time.
0 commit comments