[gnome-text-editor] .gitlab-ci.yml: add win32 mingw build to CI



commit adfd7d70c98df2f56822994e618e37dd4a6bf97c
Author: Zachary <kleimanpolitics gmail com>
Date:   Sun Aug 14 13:29:02 2022 +0000

    .gitlab-ci.yml: add win32 mingw build to CI

 .gitlab-ci.yml                 | 11 +++++++++++
 build-aux/win32/build-mingw.sh | 22 ++++++++++++++++++++++
 2 files changed, 33 insertions(+)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0b812ff..3ded1c9 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -80,6 +80,17 @@ fedora:
         - meson test --suite gnome-text-editor
         - ninja install
 
+msys2-mingw64:
+
+    tags:
+      - win32-ps
+    script: |
+
+      $env:CHERE_INVOKING = 'yes' #preserve cwd
+      $env:MSYSTEM = 'MINGW64'
+      C:/msys64/usr/bin/bash -lc "./build-aux/win32/build-mingw.sh"
+
+
 #macos:
 #    extends: .only-default
 #    only:
diff --git a/build-aux/win32/build-mingw.sh b/build-aux/win32/build-mingw.sh
new file mode 100644
index 0000000..38d2591
--- /dev/null
+++ b/build-aux/win32/build-mingw.sh
@@ -0,0 +1,22 @@
+#!/usr/bin/env bash
+
+# Install dependencies
+pacman -S --noconfirm mingw-w64-x86_64-pkg-config \
+            mingw-w64-x86_64-libadwaita \
+            mingw-w64-x86_64-gobject-introspection \
+            mingw-w64-x86_64-python-gobject \
+            mingw-w64-x86_64-enchant \
+            mingw-w64-x86_64-editorconfig-core-c \
+            mingw-w64-x86_64-meson \
+            itstool \
+            mingw-w64-x86_64-libssp \
+            mingw-w64-x86_64-gcc \
+            base-devel \
+            mingw-w64-x86_64-toolchain
+pacman -Syu --noconfirm
+
+# Compile the application
+LDFLAGS="-Wl,-lssp" meson setup builddir -Dforce_fallback_for=libadwaita,glib,gtk4,gtksourceview 
-Dlibadwaita:vapi=false -Dgtksourceview:vapi=false -Dgtk4:media-gstreamer=disabled
+meson compile -C builddir
+meson test -C builddir --suite gnome-text-editor
+meson install -C builddir


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]