changeset 57:01c605e78f48

Statically build Win32 and Win64 (#5)
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Wed, 20 Jul 2022 21:31:26 -0400
parents 0d62f49c1948
children fcd4b9fe957b
files .github/workflows/build.yml
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/build.yml	Mon Jul 18 12:03:45 2022 -0400
+++ b/.github/workflows/build.yml	Wed Jul 20 21:31:26 2022 -0400
@@ -6,6 +6,7 @@
 
 jobs:
   build-win32:
+    name: Windows i686 (32-bit)
     runs-on: windows-latest
     steps:
     - name: Setup MinGW
@@ -22,8 +23,8 @@
       run: |
         set PATH=C:\MinGW\bin;%PATH%
         set CC=mingw32-gcc
-        mingw32-make
-        mingw32-make gui
+        mingw32-make CC_FLAGS=-static
+        mingw32-make gui CC_FLAGS=-static
         strip msvpvf.exe
         strip gui.exe
       shell: cmd
@@ -38,6 +39,7 @@
           msvpvf.exe
 
   build-win64:
+    name: Windows amd64 (64-bit)
     runs-on: windows-latest
     defaults:
       run:
@@ -56,8 +58,8 @@
     - name: make
       run: |
         export CC=clang
-        make
-        make gui
+        make CC_FLAGS=-static
+        make gui CC_FLAGS=-static
         strip msvpvf.exe
         strip gui.exe
 
@@ -71,6 +73,7 @@
           msvpvf.exe
 
   build-mac:
+    name: macOS (64-bit)
     runs-on: macOS-latest
     steps:
     - name: Install "dependencies"