summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2022-01-04 15:16:02 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2022-01-21 21:16:45 +0400
commit84e60c55e470a06fb39eeb433763400ddf393c3e (patch)
tree43c1cb32e91d770a40e131e8e0a0551d18bd424d /.gitlab-ci.yml
parent98c903656d5755ba27eeb3f41640e92f232c77ae (diff)
downloaddbus-84e60c55e470a06fb39eeb433763400ddf393c3e.tar.gz
gitlab-ci: add cmake Windows builds with VS and mingw-ucrt
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5b183890..d70b94af 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -156,4 +156,39 @@ xenial:
ci_distro: "ubuntu"
ci_suite: "xenial"
+.win-build:
+ image: $WINDOWS_IMAGE
+ stage: build
+ tags:
+ - 'docker'
+ - 'windows'
+ - '1809'
+ needs:
+ - "windows amd64 docker"
+ timeout: '2h'
+ before_script:
+ - $ErrorActionPreference = "Stop"
+ - $WarningPreference = "Stop"
+ - $env:DBUS_TEST_MALLOC_FAILURES = 0
+ - $env:PATH += ";C:\bin"
+
+windows-cmake-mingw-ucrt64:
+ extends: .win-build
+ script:
+ - $env:MSYSTEM = "UCRT64"
+ - $env:CHERE_INVOKING = "1"
+ - $env:MSYS2_PATH_TYPE = "inherit"
+ - $env:PATH += ";C:\msys64\usr\bin"
+ # FIXME: glib from msys2 has issues, disable it for now
+ - C:\msys64\usr\bin\bash -lc 'cmake -G \"MinGW Makefiles\" -S . -B build -DDBUS_WITH_GLIB=OFF && cmake --build build --config Release'
+
+windows-cmake-vs15:
+ extends: .win-build
+ script:
+ - cmake -DCMAKE_PREFIX_PATH=C:/ -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DDBUS_ENABLE_VERBOSE_MODE=OFF -S . -B build
+ - cmake --build build --config Debug
+ - cmake --install build --config Debug
+ # FIXME: a few tests timeout on gitlab runner for unknown reason
+ - cd build ; ctest -C Debug -VV --timeout 1200 -E '(dbus-daemon|monitor)'
+
# vim:set sw=2 sts=2 et: