cura-all-installers.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. name: Cura All Installers
  2. run-name: ${{ inputs.cura_conan_version }} by @${{ github.actor }}
  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:
  37. description: 'Build for Windows'
  38. default: true
  39. required: true
  40. type: boolean
  41. build_linux:
  42. description: 'Build for Linux'
  43. default: true
  44. required: true
  45. type: boolean
  46. build_macos:
  47. description: 'Build for MacOs'
  48. default: true
  49. required: true
  50. type: boolean
  51. # Run the nightly at 3:25 UTC on working days
  52. schedule:
  53. - cron: '25 3 * * 1-5'
  54. jobs:
  55. windows-installer-create:
  56. if: ${{ inputs.build_windows }}
  57. uses: ./.github/workflows/cura-installer.yml
  58. with:
  59. platform: 'windows-2022'
  60. os_name: 'win64'
  61. cura_conan_version: ${{ inputs.cura_conan_version }}
  62. conan_args: ${{ inputs.conan_args }}
  63. conan_config: ${{ inputs.conan_config }}
  64. enterprise: ${{ inputs.enterprise }}
  65. staging: ${{ inputs.staging }}
  66. installer: ${{ inputs.installer }}
  67. secrets: inherit
  68. linux-installer-create:
  69. if: ${{ inputs.build_linux }}
  70. uses: ./.github/workflows/cura-installer.yml
  71. with:
  72. platform: 'ubuntu-20.04'
  73. os_name: 'linux'
  74. cura_conan_version: ${{ inputs.cura_conan_version }}
  75. conan_args: ${{ inputs.conan_args }}
  76. conan_config: ${{ inputs.conan_config }}
  77. enterprise: ${{ inputs.enterprise }}
  78. staging: ${{ inputs.staging }}
  79. installer: ${{ inputs.installer }}
  80. secrets: inherit
  81. linux-modern-installer-create:
  82. if: ${{ inputs.build_linux }}
  83. uses: ./.github/workflows/cura-installer.yml
  84. with:
  85. platform: 'ubuntu-22.04'
  86. os_name: 'linux-modern'
  87. cura_conan_version: ${{ inputs.cura_conan_version }}
  88. conan_args: ${{ inputs.conan_args }}
  89. conan_config: ${{ inputs.conan_config }}
  90. enterprise: ${{ inputs.enterprise }}
  91. staging: ${{ inputs.staging }}
  92. installer: ${{ inputs.installer }}
  93. secrets: inherit
  94. macos-installer-create:
  95. if: ${{ inputs.build_macos }}
  96. uses: ./.github/workflows/cura-installer.yml
  97. with:
  98. platform: 'macos-11'
  99. os_name: 'mac'
  100. cura_conan_version: ${{ inputs.cura_conan_version }}
  101. conan_args: ${{ inputs.conan_args }}
  102. conan_config: ${{ inputs.conan_config }}
  103. enterprise: ${{ inputs.enterprise }}
  104. staging: ${{ inputs.staging }}
  105. installer: ${{ inputs.installer }}
  106. secrets: inherit