changeset 31:a04abc0a35ca

ci: add win64 build
author Paper <mrpapersonic@gmail.com>
date Wed, 20 Sep 2023 01:02:30 -0400
parents 4dc59e1a81a3
children dbb13eaeab62
files .builds/win64.yml
diffstat 1 files changed, 33 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.builds/win64.yml	Wed Sep 20 01:02:30 2023 -0400
@@ -0,0 +1,33 @@
+image: alpine/edge
+packages:
+  - wget
+  - tar
+  - zstd
+  - gpg
+  - clang
+  - lld
+  - xz
+  - wine
+  - cmake
+  - ncurses
+  - qt5-qtbase-dev
+sources:
+  - https://hg.sr.ht/~mrpapersonic/minori
+  - https://github.com/holyblackcat/quasi-msys2
+environment:
+  BUILD_SUBMITTER: hg.sr.ht
+tasks:
+  - build: |
+      cd quasi-msys2
+      echo MINGW64 >msystem.txt
+      make install _gcc _qt5-base _curl
+      cd ../minori
+      mkdir build
+      cd build
+      sudo mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc
+      sudo bash -c 'echo -n 1 >/proc/sys/fs/binfmt_misc/status'
+      bash -c 'source ../../quasi-msys2/env/all.src && export AUTOMOC_EXECUTABLE="$(which moc)" && export AUTORCC_EXECUTABLE="$(which rcc)" && cmake .. -G "Unix Makefiles" && make'
+triggers:
+  - action: email
+    condition: failure
+    to: Paper <mrpapersonic@gmail.com>