Skip to content

Commit 034ff5d

Browse files
authored
Re-enable Windows build CI (#13699)
The Windows CI build job was disabled in #13669 due to a new Windows build failure in #13485. Since that diff was reverted in #13685, we can re-enable the job. I started fixing the issue in #13672, but dropped it due to the revert. It's a simple change, so it can likely be bundled when the affected PR is re-landed. Test Plan: The Build Preset / Windows job is passing on this PR.
1 parent 130cafc commit 034ff5d

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build-presets.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,37 @@ jobs:
103103
./install_requirements.sh > /dev/null
104104
cmake --preset ${{ matrix.preset }}
105105
cmake --build cmake-out -j$(( $(nproc) - 1 ))
106+
107+
windows:
108+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
109+
strategy:
110+
fail-fast: false
111+
matrix:
112+
preset: [windows]
113+
with:
114+
job-name: build
115+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
116+
submodules: recursive
117+
timeout: 90
118+
script: |
119+
set -eux
120+
conda init powershell
121+
powershell -Command "& {
122+
Set-PSDebug -Trace 1
123+
\$ErrorActionPreference = 'Stop'
124+
\$PSNativeCommandUseErrorActionPreference = \$true
125+
conda create --yes --quiet -n et python=3.12
126+
conda activate et
127+
python install_requirements.py
128+
cmake --preset ${{ matrix.preset }} -T ClangCL
129+
if (\$LASTEXITCODE -ne 0) {
130+
Write-Host "CMake configuration was unsuccessful. Exit code: \$LASTEXITCODE."
131+
exit \$LASTEXITCODE
132+
}
133+
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
134+
cmake --build cmake-out -j \$numCores
135+
if (\$LASTEXITCODE -ne 0) {
136+
Write-Host "CMake build was unsuccessful. Exit code: \$LASTEXITCODE."
137+
exit \$LASTEXITCODE
138+
}
139+
}"

0 commit comments

Comments
 (0)