conan-package.yml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. ---
  2. name: conan-package
  3. # Exports the recipe, sources and binaries for Mac, Windows and Linux and upload these to the server such that these can
  4. # be used downstream.
  5. #
  6. # It should run on pushes against main or CURA-* branches, but it will only create the binaries for main and release branches
  7. on:
  8. workflow_dispatch:
  9. inputs:
  10. create_binaries_windows:
  11. required: true
  12. default: false
  13. description: 'create binaries Windows'
  14. create_binaries_linux:
  15. required: true
  16. default: false
  17. description: 'create binaries Linux'
  18. create_binaries_macos:
  19. required: true
  20. default: false
  21. description: 'create binaries Macos'
  22. push:
  23. paths:
  24. - 'plugins/**'
  25. - 'resources/**'
  26. - 'cura/**'
  27. - 'icons/**'
  28. - 'tests/**'
  29. - '.github/workflows/conan-*.yml'
  30. - '.github/workflows/notify.yml'
  31. - '.github/workflows/requirements-conan-package.txt'
  32. - 'requirements*.txt'
  33. - 'conanfile.py'
  34. - 'conandata.yml'
  35. - 'GitVersion.yml'
  36. branches:
  37. - main
  38. - 'CURA-*'
  39. - '[1-9]+.[0-9]+'
  40. tags:
  41. - '[1-9]+.[0-9]+.[0-9]+'
  42. jobs:
  43. conan-recipe-version:
  44. uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@CURA-9365_fix_building_cura_main
  45. with:
  46. project_name: cura
  47. conan-package-export-macos:
  48. needs: [ conan-recipe-version ]
  49. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@CURA-9365_fix_building_cura_main
  50. with:
  51. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  52. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  53. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  54. runs_on: 'macos-10.15'
  55. python_version: '3.10.4'
  56. conan_config_branch: 'CURA-9177_Fix_CI_CD'
  57. conan_logging_level: 'info'
  58. conan_export_binaries: true
  59. secrets: inherit
  60. conan-package-export-linux:
  61. needs: [ conan-recipe-version ]
  62. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@CURA-9365_fix_building_cura_main
  63. with:
  64. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  65. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  66. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  67. runs_on: 'ubuntu-20.04'
  68. python_version: '3.10.4'
  69. conan_config_branch: 'CURA-9177_Fix_CI_CD'
  70. conan_logging_level: 'info'
  71. conan_export_binaries: true
  72. secrets: inherit
  73. conan-package-export-windows:
  74. needs: [ conan-recipe-version ]
  75. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@CURA-9365_fix_building_cura_main
  76. with:
  77. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  78. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  79. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  80. runs_on: 'windows-2022'
  81. python_version: '3.10.4'
  82. conan_config_branch: 'CURA-9177_Fix_CI_CD'
  83. conan_logging_level: 'info'
  84. conan_export_binaries: true
  85. secrets: inherit
  86. notify-export:
  87. if: ${{ always() }}
  88. needs: [ conan-package-export-linux, conan-package-export-macos, conan-package-export-windows ]
  89. uses: ultimaker/cura/.github/workflows/notify.yml@CURA-9365_fix_building_cura_main
  90. with:
  91. success: ${{ contains(join(needs.*.result, ','), 'success') }}
  92. success_title: "New Conan recipe exported in ${{ github.repository }}"
  93. success_body: "Exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
  94. failure_title: "Failed to export Conan Export in ${{ github.repository }}"
  95. failure_body: "Failed to exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
  96. secrets: inherit