Skip to content

Commit 5b1330b

Browse files
committed
Update
[ghstack-poisoned]
1 parent 9cfd2b6 commit 5b1330b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/build-presets.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,17 +119,24 @@ jobs:
119119
set -eux
120120
conda init powershell
121121
powershell -Command "& {
122+
Set-PSDebug -Trace 1
122123
\$ErrorActionPreference = 'Stop'
123124
\$PSNativeCommandUseErrorActionPreference = \$true
124-
Set-PSDebug -Trace 1
125125
126126
conda create --yes --quiet -n et python=3.12
127127
conda activate et
128128
129129
python install_requirements.py
130130
cmake --preset ${{ matrix.preset }}
131+
if (\$LASTEXITCODE -ne 0) {
132+
Write-Host "CMake configuration was unsuccessful. Exit code: \$LASTEXITCODE."
133+
exit \$LASTEXITCODE
134+
}
131135
132-
Write-Host "Build exit code: \$LASTEXITCODE"
133136
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
134137
cmake --build cmake-out -j \$numCores
138+
if (\$LASTEXITCODE -ne 0) {
139+
Write-Host "CMake build was unsuccessful. Exit code: \$LASTEXITCODE."
140+
exit \$LASTEXITCODE
141+
}
135142
}"

0 commit comments

Comments
 (0)