PR-builds.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. name: Build Packages
  2. on: [push, pull_request, workflow_dispatch]
  3. jobs:
  4. Build-Windows-32bit-VS2019:
  5. name: 32-bit Windows On VS2019
  6. runs-on: windows-2019
  7. steps:
  8. - uses: actions/checkout@v2
  9. - uses: microsoft/[email protected]
  10. with:
  11. vs-version: '[16.0, 17.0)'
  12. - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Debug /p:Platform=win32
  13. - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
  14. - uses: actions/upload-artifact@v2
  15. with:
  16. name: Torque2D_Windows_x86_32bit_VS2019
  17. path: |
  18. .
  19. ! .git/
  20. ! engine/
  21. Build-Windows-64bit-VS2019:
  22. name: 64-bit Windows On VS2019
  23. runs-on: windows-2019
  24. steps:
  25. - uses: actions/checkout@v2
  26. - uses: microsoft/[email protected]
  27. with:
  28. vs-version: '[16.0, 17.0)'
  29. msbuild-architecture: x64
  30. - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Debug /p:Platform=x64
  31. - run: msbuild -m "engine/compilers/VisualStudio 2019/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
  32. - uses: actions/upload-artifact@v2
  33. with:
  34. name: Torque2D_Windows_x86_64bit_VS2019
  35. path: |
  36. .
  37. ! .git/
  38. ! engine/
  39. Build-Windows-32bit-VS2022:
  40. name: 32-bit Windows On VS2022
  41. runs-on: windows-latest
  42. steps:
  43. - uses: actions/checkout@v2
  44. - uses: microsoft/[email protected]
  45. with:
  46. vs-version: '[17.0, 18.0)'
  47. - run: msbuild -m "engine/compilers/VisualStudio 2022/Torque 2D.sln" /p:Configuration=Debug /p:Platform=win32
  48. - run: msbuild -m "engine/compilers/VisualStudio 2022/Torque 2D.sln" /p:Configuration=Release /p:Platform=win32
  49. - uses: actions/upload-artifact@v2
  50. with:
  51. name: Torque2D_Windows_x86_32bit_VS2022
  52. path: |
  53. .
  54. ! .git/
  55. ! engine/
  56. Build-Windows-64bit-VS2022:
  57. name: 64-bit Windows On VS2022
  58. runs-on: windows-latest
  59. steps:
  60. - uses: actions/checkout@v2
  61. - uses: microsoft/[email protected]
  62. with:
  63. vs-version: '[17.0, 18.0)'
  64. msbuild-architecture: x64
  65. - run: msbuild -m "engine/compilers/VisualStudio 2022/Torque 2D.sln" /p:Configuration=Debug /p:Platform=x64
  66. - run: msbuild -m "engine/compilers/VisualStudio 2022/Torque 2D.sln" /p:Configuration=Release /p:Platform=x64
  67. - uses: actions/upload-artifact@v2
  68. with:
  69. name: Torque2D_Windows_x86_64bit_VS2022
  70. path: |
  71. .
  72. ! .git/
  73. ! engine/
  74. Build-Linux-32Bit:
  75. name: Build package for 32-bit x86 Linux
  76. runs-on: ubuntu-latest
  77. steps:
  78. - uses: actions/checkout@v2
  79. - run: cd engine/compilers/Make-32bit/ && make
  80. - uses: actions/upload-artifact@v2
  81. with:
  82. name: Torque2D_Linux_x86_32bit
  83. path: |
  84. .
  85. ! .git/
  86. ! engine/
  87. Build-Linux-64bit:
  88. name: Build package for 64-bit x86 Linux
  89. runs-on: ubuntu-latest
  90. steps:
  91. - uses: actions/checkout@v2
  92. - run: cd engine/compilers/Make-64bit/ && make
  93. - uses: actions/upload-artifact@v2
  94. with:
  95. name: Torque2D_Linux_x86_64bit
  96. path: |
  97. .
  98. ! .git/
  99. ! engine/
  100. Build-MacOS:
  101. name: Build package for MacOS
  102. runs-on: macOS-latest
  103. steps:
  104. - uses: actions/checkout@v2
  105. - run: cd engine/compilers/Xcode && xcodebuild -project Torque2D.xcodeproj
  106. - uses: actions/upload-artifact@v2
  107. with:
  108. name: Torque2D_MacOS
  109. path: |
  110. .
  111. ! .git/
  112. ! engine/
  113. Build-iOS:
  114. name: Build package for iOS
  115. runs-on: macOS-latest
  116. steps:
  117. - uses: actions/checkout@v2
  118. - run: cd engine/compilers/Xcode_iOS && xcodebuild CODE_SIGNING_ALLOWED=no -project Torque2D.xcodeproj
  119. - uses: actions/upload-artifact@v2
  120. with:
  121. name: Torque2D_iOS
  122. path: |
  123. .
  124. ! .git/
  125. ! engine/