Browse Source

Merge pull request #38 from elementc/feature/build-mac-in-github-actions

Add VS2017, macOS, iOS builds
Peter Robinson 4 years ago
parent
commit
9173d23acf
1 changed files with 62 additions and 6 deletions
  1. 62 6
      .github/workflows/PR-builds.yml

+ 62 - 6
.github/workflows/PR-builds.yml

@@ -1,8 +1,8 @@
 name: Build Packages
 name: Build Packages
 on: [push, pull_request]
 on: [push, pull_request]
 jobs:
 jobs:
-  Build-Windows-32bit:
-    name: Build package for 32-bit x86 Windows
+  Build-Windows-32bit-VS2019:
+    name: 32-bit Windows On VS2019
     runs-on: windows-latest
     runs-on: windows-latest
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
@@ -11,13 +11,13 @@ jobs:
       - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
       - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
       - uses: actions/upload-artifact@v2
       - uses: actions/upload-artifact@v2
         with:
         with:
-          name: Torque2D_Windows_x86_32bit
+          name: Torque2D_Windows_x86_32bit_VS2019
           path: |
           path: |
             .
             .
             ! .git/
             ! .git/
             ! engine/
             ! engine/
-  Build-Windows-64bit:
-    name: Build package for 64-bit x86 Windows
+  Build-Windows-64bit-VS2019:
+    name: 64-bit Windows On VS2019
     runs-on: windows-latest
     runs-on: windows-latest
     steps:
     steps:
       - uses: actions/checkout@v2
       - uses: actions/checkout@v2
@@ -26,7 +26,37 @@ jobs:
       - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
       - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
       - uses: actions/upload-artifact@v2
       - uses: actions/upload-artifact@v2
         with:
         with:
-          name: Torque2D_Windows_x86_64bit
+          name: Torque2D_Windows_x86_64bit_VS2019
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-Windows-32bit-VS2017:
+    name: 32-bit Windows On VS2017
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: microsoft/[email protected]
+      - run: msbuild -m "engine/compilers/VisualStudio 2017/Torque 2D.sln" /p:Configuration=Debug /p:Platform=win32
+      - run: msbuild -m "engine/compilers/VisualStudio 2017/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Windows_x86_32bit_VS2017
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-Windows-64bit-VS2017:
+    name: 64-bit Windows On VS2017
+    runs-on: windows-latest
+    steps:
+      - uses: actions/checkout@v2
+      - uses: microsoft/[email protected]
+      - run: msbuild -m "engine/compilers/VisualStudio 2017/Torque 2D.sln" /p:Configuration=Debug /p:Platform=x64
+      - run: msbuild -m "engine/compilers/VisualStudio 2017/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_Windows_x86_64bit_VS2017
           path: |
           path: |
             .
             .
             ! .git/
             ! .git/
@@ -57,3 +87,29 @@ jobs:
             .
             .
             ! .git/
             ! .git/
             ! engine/
             ! engine/
+  Build-MacOS:
+    name: Build package for MacOS
+    runs-on: macOS-latest
+    steps:
+      - uses: actions/checkout@v2
+      - run: cd engine/compilers/Xcode && xcodebuild -project Torque2D.xcodeproj
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_MacOS
+          path: |
+            .
+            ! .git/
+            ! engine/
+  Build-iOS:
+    name: Build package for iOS
+    runs-on: macOS-latest
+    steps:
+      - uses: actions/checkout@v2
+      - run: cd engine/compilers/Xcode_iOS && xcodebuild CODE_SIGNING_ALLOWED=no -project Torque2D.xcodeproj
+      - uses: actions/upload-artifact@v2
+        with:
+          name: Torque2D_iOS
+          path: |
+            .
+            ! .git/
+            ! engine/