changeset 83:837c5380d6f9

CI: add CI builds
author Paper <paper@paper.us.eu.org>
date Fri, 22 Mar 2024 22:26:57 -0400
parents 59a86b638d40
children 7d4db3e24487
files .builds/unix.yml .builds/windows.yml
diffstat 2 files changed, 51 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.builds/unix.yml	Fri Mar 22 22:26:57 2024 -0400
@@ -0,0 +1,18 @@
+image: debian/bookworm
+packages:
+  - gcc
+  - make
+sources:
+  - hg+https://hg.sr.ht/~mrpapersonic/msvpvf
+tasks:
+  - build: |
+      # build
+      cd msvpvf
+      make
+      strip msvpvf
+artifacts:
+  - msvpvf/msvpvf
+triggers:
+  - action: email
+    condition: failure
+    to: Paper <paper@paper.us.eu.org>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/.builds/windows.yml	Fri Mar 22 22:26:57 2024 -0400
@@ -0,0 +1,33 @@
+image: debian/bookworm
+packages:
+  - mingw-w64
+sources:
+  - hg+https://hg.sr.ht/~mrpapersonic/msvpvf
+tasks:
+  - build: |
+      cd msvpvf
+
+      # x86 ANSI
+      CC=i686-w64-mingw32-gcc make gui
+      strip gui.exe
+      mv gui.exe msvpvf-i686-ansi.exe
+
+      # x86 Unicode
+      make clean
+      CC=i686-w64-mingw32-gcc make gui CFLAGS="-DUNICODE -D_UNICODE"
+      strip gui.exe
+      mv gui.exe msvpvf-i686-unicode.exe
+
+      # x64 Unicode
+      make clean
+      CC=x86_64-w64-mingw32-gcc make gui CFLAGS="-DUNICODE -D_UNICODE"
+      strip gui.exe
+      mv gui.exe msvpvf-x86_64-unicode.exe
+artifacts:
+  - msvpvf/msvpvf-i686-ansi.exe
+  - msvpvf/msvpvf-i686-unicode.exe
+  - msvpvf/msvpvf-x86_64-unicode.exe
+triggers:
+  - action: email
+    condition: failure
+    to: Paper <paper@paper.us.eu.org>