changeset 246:f475e168fac8

CI: add experimental windows build
author Paper <paper@paper.us.eu.org>
date Tue, 23 Jan 2024 10:16:25 -0500
parents 8b174bcde667
children 6b2441c776dd
files .builds/linux.yml .builds/windows.yml
diffstat 2 files changed, 37 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/.builds/linux.yml	Tue Jan 23 09:44:01 2024 -0500
+++ b/.builds/linux.yml	Tue Jan 23 10:16:25 2024 -0500
@@ -41,4 +41,4 @@
 triggers:
   - action: email
     condition: failure
-    to: Paper <mrpapersonic@gmail.com>
+    to: Paper <paper@paper.us.eu.org>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.builds/windows.yml	Tue Jan 23 10:16:25 2024 -0500
@@ -0,0 +1,36 @@
+image: debian/bookworm
+packages:
+  - automake
+  - autoconf
+  - libtool
+sources:
+  - https://hg.sr.ht/~mrpapersonic/minori
+tasks:
+  - install-docker: |
+      # Add Docker's official GPG key:
+      sudo apt update
+      sudo apt install ca-certificates curl gnupg
+      sudo install -m 0755 -d /etc/apt/keyrings
+      curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
+      sudo chmod a+r /etc/apt/keyrings/docker.gpg
+
+      # Add the repository to Apt sources:
+      echo \
+        "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
+        $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
+        sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
+      sudo apt update
+
+      sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
+  - build: |
+      export ARCH="x86_64"
+      cd minori
+      autoreconf -i
+
+      mkdir build
+      sudo docker run -e MSYSTEM=MINGW64 -w "$PWD/build" amitie10g/msys2 "/bin/bash -c 'pacman -S --noconfirm mingw-w64-$ARCH-qt5-base mingw-w64-$ARCH-qt5-translations mingw-w64-$ARCH-qt5-tools mingw-w64-$ARCH-toolchain mingw-w64-$ARCH-curl mingw-w64-$ARCH-make; ../configure; make; ../scripts/win32/deploy_build.sh'"
+
+triggers:
+  - action: email
+    condition: failure
+    to: Paper <mrpapersonic@gmail.com>