Browse Source

Build 32-bit and 64-bit Windows and Linux whenever pushes to master or PR builds come in.

Casey Doran 4 years ago
parent
commit
7346533074

+ 59 - 0
.github/workflows/PR-builds.yml

@@ -0,0 +1,59 @@
+name: Build Packages
+on: [push, pull_request]
+jobs:
+  Build-Windows-32bit:
+    name: Build package for 32-bit x86 Windows
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: microsoft/[email protected]
+      - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Debug /p:Platform=win32
+      - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Windows_x86_32bit
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-Windows-64bit:
+    name: Build package for 64-bit x86 Windows
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: microsoft/[email protected]
+      - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Debug /p:Platform=x64
+      - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Windows_x86_64bit
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-Linux-32Bit:
+    name: Build package for 32-bit x86 Linux
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - run: cd engine/compilers/Make-32bit/ && make
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Linux_x86_32bit
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-Linux-64bit:
+    name: Build package for 64-bit x86 Linux
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - run: cd engine/compilers/Make-64bit/ && make
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Linux_x86_64bit
+          path: |
+            .
+            ! .git/
+            ! engine/

+ 1 - 1
engine/compilers/Make-32bit/Makefile

@@ -27,7 +27,7 @@ clean:
 
 .PHONY: all debug release clean
 
--include x Torque2D
+-include x Torque2D.mk
 -include x zlib
 -include x lpng
 -include x ljpeg

+ 0 - 0
engine/compilers/Make-32bit/Torque2D → engine/compilers/Make-32bit/Torque2D.mk


+ 1 - 1
engine/compilers/Make-64bit/Makefile

@@ -27,7 +27,7 @@ clean:
 
 .PHONY: all debug release clean
 
--include x Torque2D
+-include x Torque2D.mk
 -include x zlib
 -include x lpng
 -include x ljpeg

+ 0 - 0
engine/compilers/Make-64bit/Torque2D → engine/compilers/Make-64bit/Torque2D.mk