shithub: MicroHs

Download patch

ref: c38cb328bc10dc2ef1025b66fd4f9475d15077d4
parent: 3889a8ea5b8d3c5ec6bd6382e9de76c667cdeef1
author: Lennart Augustsson <lennart.augustsson@epicgames.com>
date: Mon Nov 27 10:47:42 EST 2023

Add CI for windows

--- a/.github/workflows/c-cpp.yml
+++ b/.github/workflows/c-cpp.yml
@@ -31,3 +31,14 @@
     - name: cabal build
       run: cabal build
 
+  build-windows:
+    runs-on: windows-latest
+    steps:
+    - name: checkout repo
+      uses: actions/checkout@v3
+    - name: set up MSVC
+      uses: ilammy/msvc-dev-cmd@v1
+    - name: nmake
+      run: nmake -f Makefile.windows
+    - name: name exampletest
+      run: nmake -f Makefile.windows exampletest
--- a/Makefile.windows
+++ b/Makefile.windows
@@ -12,3 +12,8 @@
 bin/mhseval.exe:	src/runtime/*.c src/runtime/config*.h src/runtime/comb.c
 	@-mkdir bin
 	cl /O2 src/runtime/eval-windows-64.c src/runtime/comb.c /Febin/mhseval.exe
+
+exampletest:	bin/mhs bin/mhseval Example.hs
+	bin/mhs -r Example
+	bin/mhs Example && bin/mhseval
+#	bin/mhs Example -oEx && ./Ex && rm Ex
--