File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -119,14 +119,24 @@ jobs:
119
119
set -eux
120
120
conda init powershell
121
121
powershell -Command "& {
122
- \$ErrorActionPreference = 'Stop'
123
122
Set-PSDebug -Trace 1
123
+ \$ErrorActionPreference = 'Stop'
124
+ \$PSNativeCommandUseErrorActionPreference = \$true
124
125
125
126
conda create --yes --quiet -n et python=3.12
126
127
conda activate et
127
128
128
129
python install_requirements.py
129
130
cmake --preset ${{ matrix.preset }}
131
+ if (\$LASTEXITCODE -ne 0) {
132
+ Write-Host "CMake configuration was unsuccessful. Exit code: \$LASTEXITCODE."
133
+ exit \$LASTEXITCODE
134
+ }
135
+
130
136
\$numCores = [System.Environment]::GetEnvironmentVariable('NUMBER_OF_PROCESSORS') - 1
131
137
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
+ }
132
142
}"
You can’t perform that action at this time.
0 commit comments