changeset 50:0fa325f60f07 v1.2.1

Use OG MinGW (not MinGW-w64) for GitHub Actions (#4)
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Sun, 22 May 2022 03:52:39 -0400
parents d14874c7ca98
children 0f6c604b6863
files .github/workflows/build.yml
diffstat 1 files changed, 36 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/.github/workflows/build.yml	Sun May 22 00:48:47 2022 -0400
+++ b/.github/workflows/build.yml	Sun May 22 03:52:39 2022 -0400
@@ -5,24 +5,51 @@
   pull_request:
 
 jobs:
-  build-win:
+  build-win32:
+    runs-on: windows-latest
+    steps:
+    - name: Setup MinGW
+      run: |
+        curl -L -o mingw-get.tar.xz https://sourceforge.net/projects/mingw/files/Installer/mingw-get/mingw-get-0.6.2-beta-20131004-1/mingw-get-0.6.2-mingw32-beta-20131004-1-bin.zip/download # https://osdn.net/projects/mingw/downloads/68260/mingw-get-0.6.3-mingw32-pre-20170905-1-bin.tar.xz
+        mkdir C:\MinGW
+        tar xvf mingw-get.tar.xz -C C:\MinGW
+        C:\MinGW\bin\mingw-get.exe install mingw32-base-bin
+      shell: pwsh
+
+    - uses: actions/checkout@v2
+
+    - name: make
+      run: |
+        set PATH=C:\MinGW\bin;%PATH%
+        set CC=mingw32-gcc
+        mingw32-make
+        mingw32-make gui
+        strip msvpvf.exe
+        strip gui.exe
+      shell: cmd
+
+    - name: Upload artifact
+      uses: actions/upload-artifact@v2
+      with:
+        name: msvpvf-win32-${{ github.sha }}
+        path: |
+          LICENSE
+          gui.exe
+          msvpvf.exe
+
+  build-win64:
     runs-on: windows-latest
     defaults:
       run:
         shell: msys2 {0}
-    strategy:
-      matrix:
-        include:
-          - { sys: mingw64, env: x86_64 }
-          - { sys: mingw32, env: i686 }
     steps:
     - name: Setup MSYS2
       uses: msys2/setup-msys2@v2
       with:
-        msystem: ${{matrix.sys}}
+        msystem: mingw64
         install: >-
           make
-          mingw-w64-${{matrix.env}}-clang
+          mingw-w64-x86_64-clang
 
     - uses: actions/checkout@v2
 
@@ -37,7 +64,7 @@
     - name: Upload artifact
       uses: actions/upload-artifact@v2
       with:
-        name: msvpvf-win-${{matrix.env}}-${{ github.sha }}
+        name: msvpvf-win64-${{ github.sha }}
         path: |
           LICENSE
           gui.exe