Skip to content

Commit a69cb56

Browse files
committed
Fix error reporting in Windows preset build job
ghstack-source-id: 8e73876 ghstack-comment-id: 3169485065 Pull-Request: #13247
1 parent 724efe1 commit a69cb56

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/build-presets.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,16 @@ jobs:
120120
conda init powershell
121121
powershell -Command "& {
122122
\$ErrorActionPreference = 'Stop'
123+
\$PSNativeCommandUseErrorActionPreference = \$true
123124
Set-PSDebug -Trace 1
124125
125126
conda create --yes --quiet -n et python=3.12
126127
conda activate et
127128
128129
python install_requirements.py
129130
cmake --preset ${{ matrix.preset }}
131+
132+
Write-Host "Build exit code: \$LASTEXITCODE"
130133
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
131134
cmake --build cmake-out -j \$numCores
132135
}"

0 commit comments

Comments
 (0)