]> granicus.if.org Git - fortune-mod/commitdiff
gh actions #2: win32 fix
authorShlomi Fish <shlomif@shlomifish.org>
Sat, 30 Apr 2022 10:19:06 +0000 (13:19 +0300)
committerShlomi Fish <shlomif@shlomifish.org>
Sat, 30 Apr 2022 10:19:06 +0000 (13:19 +0300)
thanks to https://github.com/haskell-hvr/regex-posix/issues/4

.github/workflows/windows-x64.yml
CI-testing/continuous-integration-testing.pl
CI-testing/translate-travis.yml-to-github-actions.py

index cd35236f7193d4ef330c8b68d72f2cf8818b444e..897d28c6d59e21b2fc032062b2f9f62923495ebd 100644 (file)
@@ -64,6 +64,9 @@ jobs:
 
                 SET VERBOSE=1
 
+                pacman -S mingw-w64-x86_64-libsystre || ( echo Failed & exit /B 1
+                )
+
                 c:\msys64\usr\bin\bash -lc "pacman --noconfirm -Syuu" || ( echo Failed
                 & exit /B 1 )
 
index 7a9f3fd6803226d3800177e0fee0b6535088aecc..28d26729c19ac064436bd2c63020e26838522743 100644 (file)
@@ -108,6 +108,7 @@ do_system(
                 $IS_WIN
                 ? ( $cmake_common_args
                         . "$W -DCMAKE_INSTALL_PREFIX=c:/foo "
+                        . " -DUSE_WIN32_REGEX_LIBS=TRUE "
                         . " ../fortune-mod && $MAKE && $MAKE install && $MAKE check"
                     )
                 : ( $cmake_common_args
index bb3c505ed7aa3b30e2611ab53b77049e8a455a70..361f68caa74dfe36505010bff40c6166d0e27d19 100644 (file)
@@ -188,10 +188,12 @@ def generate_windows_yaml(plat, output_path, is_act):
         for k, v in sorted(data['environment']['global'].items()):
             # batch += "SET " + k + "=\"" + v + "\"\n"
             batch += "SET " + k + "=" + v + "\n"
+        idx = 0
         if plat == 'x86':
-            idx = 0
             cmds.insert(idx, "SET CXX=c++")
             cmds.insert(idx, "SET CC=cc")
+        elif plat == 'x64':
+            cmds.insert(idx, "pacman -S mingw-w64-x86_64-libsystre")
 
         for cmd in cmds:
             if cmd.startswith("copy C:\\msys64\\mingw64\\bin" +