From 6d3672911bcd5fbe85967f8e16ac29aca53d6549 Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki Date: Wed, 21 Nov 2018 16:48:01 +0100 Subject: [PATCH] gitlab-ci: Added builds for native Windows This uses a runner configured with the tag "vs2017 or windows". Signed-off-by: Anderson Toshiyuki Sasaki Signed-off-by: Andreas Schneider --- .gitlab-ci.yml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 826e617b..060d46a2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -412,3 +412,56 @@ tumbleweed/static-analysis: when: on_failure paths: - obj/scan + +visualstudio/x86_64: + script: + - $env:VCPKG_DEFAULT_TRIPLET="x64-windows" + - cd obj + - cmake + -A x64 + -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE" + -DPICKY_DEVELOPER=ON + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON + -DUNIT_TESTING=ON .. + - cmake --build . + - ctest --output-on-failure + tags: + - vs2017 + - windows + except: + - tags + only: + - branches@libssh/libssh-mirror + - branches@ansasaki/libssh-mirror + - branches@cryptomilk/libssh-mirror + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/ + +visualstudio/x86: + script: + - $env:VCPKG_DEFAULT_TRIPLET="x86-windows" + - cd obj + - cmake + -DCMAKE_TOOLCHAIN_FILE="$env:VCPKG_TOOLCHAIN_FILE" + -DPICKY_DEVELOPER=ON + -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON -DWITH_PCAP=ON + -DUNIT_TESTING=ON .. + - cmake --build . + - ctest --output-on-failure + tags: + - vs2017 + - windows + except: + - tags + only: + - branches@libssh/libssh-mirror + - branches@ansasaki/libssh-mirror + - branches@cryptomilk/libssh-mirror + artifacts: + expire_in: 1 week + when: on_failure + paths: + - obj/