[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] gitlab-ci: Added builds for Windows using MinGW
[Thread Prev] | [Thread Next]
- Subject: [PATCH] gitlab-ci: Added builds for Windows using MinGW
- From: Anderson Sasaki <ansasaki@xxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Mon, 25 Jun 2018 08:28:24 -0400 (EDT)
- To: libssh@xxxxxxxxxx
Hello, The following patch adds Windows builds in gitlab using MinGW. The required docker image was already merged in libssh/build-images project (buildenv-mingw). These builds do not run tests because, as far as I know, cwrap is not available in Windows environment. At least, it is possible to detect if the project is correctly building. Regards, Anderson From ccb559bd3d1bb2740a408118da1032421c99d60f Mon Sep 17 00:00:00 2001 From: Anderson Toshiyuki Sasaki <ansasaki@xxxxxxxxxx> Date: Tue, 12 Jun 2018 15:15:20 +0200 Subject: [PATCH] Added builds for Windows using MinGW The added builds do not run tests because cwrap is not available to build tests using MinGW. Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@xxxxxxxxxx> --- .gitlab-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 19a41e79..54ed50eb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,7 @@ variables: FEDORA_BUILD: buildenv-fedora CENTOS7_BUILD: buildenv-centos7 TUMBLEWEED_BUILD: buildenv-tumbleweed + MINGW_BUILD: buildenv-mingw debian/openssl_1.0.x/aarch64: script: @@ -196,3 +197,37 @@ tumbleweed/static-analysis: when: on_failure paths: - build/scan + +# Build only, no testing, because cwrap is not available for mingw +mingw64: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD + script: + - mkdir build && cd build && mingw64-cmake -DCMAKE_BUILD_TYPE=Debug + -DWITH_SSH1=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON + -DWITH_PCAP=ON .. && make -j$(nproc) + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - build/ + +# Build only, no testing, because cwrap is not available for mingw +mingw32: + image: $CI_REGISTRY/$BUILD_IMAGES_PROJECT:$MINGW_BUILD + script: + - mkdir build && cd build && mingw32-cmake -DCMAKE_BUILD_TYPE=Debug + -DWITH_SSH1=ON -DWITH_SFTP=ON -DWITH_SERVER=ON -DWITH_ZLIB=ON + -DWITH_PCAP=ON .. && make -j$(nproc) + tags: + - shared + except: + - tags + artifacts: + expire_in: 1 week + when: on_failure + paths: + - build/ -- 2.14.3
Re: [PATCH] gitlab-ci: Added builds for Windows using MinGW | Andreas Schneider <asn@xxxxxxxxxxxxxx> |