Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 8cae79d

Browse files
committed
Fixed the build for CI case.
1 parent 15fa102 commit 8cae79d

File tree

1 file changed

+6
-4
lines changed
  • src/Simulation/Simulators/SparseSimulator

1 file changed

+6
-4
lines changed

src/Simulation/Simulators/SparseSimulator/build.ps1

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,19 +58,21 @@ Push-Location $BuildDir
5858
}
5959

6060
# Generate the build scripts:
61-
Invoke-Expression $CmakeConfigCommand
61+
( Invoke-Expression $CmakeConfigCommand ) || ( Invoke-Expression "Pop-Location" && Invoke-Expression "Exit 1" )
6262

6363
# Invoke the build scripts:
64-
cmake --build .
64+
( cmake --build . ) || ( Invoke-Expression "Pop-Location" && Invoke-Expression "Exit 1" )
6565

6666
# popd
6767
Pop-Location
6868

6969

7070
# BUILD C# PART AND TESTS
7171

72-
dotnet build . --configuration $Env:BUILD_CONFIGURATION
73-
# dotnet test . --configuration $Env:BUILD_CONFIGURATION
72+
Push-Location $PSScriptRoot
73+
dotnet build . --configuration $Env:BUILD_CONFIGURATION
74+
# dotnet test . --configuration $Env:BUILD_CONFIGURATION
75+
Pop-Location
7476

7577
if ($ClearConfig -ne $null) {
7678
$Env:BUILD_CONFIGURATION = $Null

0 commit comments

Comments
 (0)