mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09:00
gitlab-ci: Create obj directory for Windows builds
The obj directory is not created anymore when the git repository is cloned. Create the directory during the build. Also set the variable "ErrorActionPreference: STOP" to make the build to fail if an error occurs. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Andreas Schneider
parent
1fe5f03fff
commit
7f5e14698f
@@ -378,6 +378,8 @@ freebsd/x86_64:
|
||||
# Visual Studio builds #
|
||||
###############################################################################
|
||||
.vs:
|
||||
variables:
|
||||
ErrorActionPreference: STOP
|
||||
script:
|
||||
- cmake --build .
|
||||
- ctest --output-on-failure
|
||||
@@ -401,7 +403,7 @@ visualstudio/x86_64:
|
||||
extends: .vs
|
||||
before_script:
|
||||
- $env:VCPKG_DEFAULT_TRIPLET="x64-windows"
|
||||
- cd obj
|
||||
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
|
||||
- cmake
|
||||
-A x64
|
||||
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
|
||||
@@ -413,7 +415,7 @@ visualstudio/x86:
|
||||
extends: .vs
|
||||
before_script:
|
||||
- $env:VCPKG_DEFAULT_TRIPLET="x86-windows"
|
||||
- cd obj
|
||||
- mkdir -p obj; if ($?) {cd obj}; if (! $?) {exit 1}
|
||||
- cmake
|
||||
-DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE"
|
||||
-DPICKY_DEVELOPER=ON
|
||||
|
||||
Reference in New Issue
Block a user