[Spice-devel] [spice-gtk v1 09/10] gitlab-ci: add mingw meson build

Victor Toso victortoso at redhat.com
Fri Feb 8 18:32:51 UTC 2019


From: Victor Toso <me at victortoso.com>

To keep track of meson builds for windows too.
Note that mingw64-meson requires to be ran inside the folder,
different from common meson. So, some extra steps were done due that.

Signed-off-by: Victor Toso <victortoso at redhat.com>
---
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c68f9d7..71a0007 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -79,3 +79,24 @@ windows-autotools:
     - NOCONFIGURE=yes ./autogen.sh
     - PYTHON=python3 mingw64-configure --enable-static
     - make -j4
+
+windows-meson:
+  artifacts:
+    paths:
+      - _build_win64/meson-logs/*.txt
+      - spice-protocol/_build_spice-protocol/meson-logs/*.txt
+    when: always
+    expire_in: 1 week
+
+  before_script:
+    - dnf install -y $DEPS_COMMON $DEPS_MINGW
+    - git clone ${CI_REPOSITORY_URL/spice-gtk/spice-protocol}
+    - mkdir spice-protocol/_build_spice-protocol && cd spice-protocol/_build_spice-protocol
+    - mingw64-meson --prefix=/usr
+    - ninja install
+
+  script:
+    - cd $CI_PROJECT_DIR
+    - mkdir _build_win64 && cd _build_win64
+    - mingw64-meson -Dgtk_doc=disabled
+    - ninja install
-- 
2.19.0



More information about the Spice-devel mailing list