cura-all-installers.yml 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. name: Cura All Installers
  2. run-name: ${{ inputs.cura_conan_version }} for exe ${{ inputs.build_windows_exe }}, msi ${{ inputs.build_windows_msi }}, dmg ${{ inputs.build_macos }}, pkg ${{ inputs.build_macos_installer }}, appimage ${{ inputs.build_linux }} - enterprise ${{ inputs.enterprise }}
  3. on:
  4. workflow_dispatch:
  5. inputs:
  6. cura_conan_version:
  7. description: 'Cura Conan Version'
  8. default: 'cura/latest@ultimaker/testing'
  9. required: true
  10. type: string
  11. conan_args:
  12. description: 'Conan args: eq.: --require-override'
  13. default: ''
  14. required: false
  15. type: string
  16. conan_config:
  17. description: 'Conan config branch to use'
  18. default: ''
  19. required: false
  20. type: string
  21. enterprise:
  22. description: 'Build Cura as an Enterprise edition'
  23. default: false
  24. required: true
  25. type: boolean
  26. staging:
  27. description: 'Use staging API'
  28. default: false
  29. required: true
  30. type: boolean
  31. installer:
  32. description: 'Create the installer'
  33. default: true
  34. required: true
  35. type: boolean
  36. build_windows_exe:
  37. description: 'Build for Windows exe'
  38. default: false
  39. required: true
  40. type: boolean
  41. build_windows_msi:
  42. description: 'Build for msi+pkg'
  43. default: true
  44. required: true
  45. type: boolean
  46. build_linux:
  47. description: 'Build for Linux'
  48. default: true
  49. required: true
  50. type: boolean
  51. build_macos:
  52. description: 'Build dmg for MacOS'
  53. default: true
  54. required: true
  55. type: boolean
  56. # Run the nightly at 3:25 UTC on working days
  57. schedule:
  58. - cron: '25 3 * * 1-5'
  59. jobs:
  60. windows-installer-create-exe:
  61. if: ${{ inputs.build_windows_exe }}
  62. uses: ./.github/workflows/cura-installer.yml
  63. with:
  64. platform: 'windows-2022'
  65. os_name: 'win64'
  66. cura_conan_version: ${{ inputs.cura_conan_version }}
  67. conan_args: ${{ inputs.conan_args }}
  68. conan_config: ${{ inputs.conan_config }}
  69. enterprise: ${{ inputs.enterprise }}
  70. staging: ${{ inputs.staging }}
  71. installer: ${{ inputs.installer }}
  72. msi_installer: false
  73. secrets: inherit
  74. windows-installer-create-msi:
  75. if: ${{ inputs.build_windows_msi }}
  76. uses: ./.github/workflows/cura-installer.yml
  77. with:
  78. platform: 'windows-2022'
  79. os_name: 'win64'
  80. cura_conan_version: ${{ inputs.cura_conan_version }}
  81. conan_args: ${{ inputs.conan_args }}
  82. conan_config: ${{ inputs.conan_config }}
  83. enterprise: ${{ inputs.enterprise }}
  84. staging: ${{ inputs.staging }}
  85. installer: ${{ inputs.installer }}
  86. msi_installer: true
  87. secrets: inherit
  88. linux-installer-create:
  89. if: ${{ inputs.build_linux }}
  90. uses: ./.github/workflows/cura-installer.yml
  91. with:
  92. platform: 'ubuntu-20.04'
  93. os_name: 'linux'
  94. cura_conan_version: ${{ inputs.cura_conan_version }}
  95. conan_args: ${{ inputs.conan_args }}
  96. conan_config: ${{ inputs.conan_config }}
  97. enterprise: ${{ inputs.enterprise }}
  98. staging: ${{ inputs.staging }}
  99. installer: ${{ inputs.installer }}
  100. msi_installer: false
  101. secrets: inherit
  102. linux-modern-installer-create:
  103. if: ${{ inputs.build_linux }}
  104. uses: ./.github/workflows/cura-installer.yml
  105. with:
  106. platform: 'ubuntu-22.04'
  107. os_name: 'linux-modern'
  108. cura_conan_version: ${{ inputs.cura_conan_version }}
  109. conan_args: ${{ inputs.conan_args }}
  110. conan_config: ${{ inputs.conan_config }}
  111. enterprise: ${{ inputs.enterprise }}
  112. staging: ${{ inputs.staging }}
  113. installer: ${{ inputs.installer }}
  114. msi_installer: false
  115. secrets: inherit
  116. macos-dmg-create:
  117. if: ${{ inputs.build_macos }}
  118. uses: ./.github/workflows/cura-installer.yml
  119. with:
  120. platform: 'macos-11'
  121. os_name: 'mac'
  122. cura_conan_version: ${{ inputs.cura_conan_version }}
  123. conan_args: ${{ inputs.conan_args }}
  124. conan_config: ${{ inputs.conan_config }}
  125. enterprise: ${{ inputs.enterprise }}
  126. staging: ${{ inputs.staging }}
  127. installer: ${{ inputs.installer }}
  128. msi_installer: false
  129. secrets: inherit
  130. macos-installer-create:
  131. if: ${{ inputs.build_macos }}
  132. uses: ./.github/workflows/cura-installer.yml
  133. with:
  134. platform: 'macos-11'
  135. os_name: 'mac'
  136. cura_conan_version: ${{ inputs.cura_conan_version }}
  137. conan_args: ${{ inputs.conan_args }}
  138. conan_config: ${{ inputs.conan_config }}
  139. enterprise: ${{ inputs.enterprise }}
  140. staging: ${{ inputs.staging }}
  141. installer: ${{ inputs.installer }}
  142. msi_installer: true
  143. secrets: inherit