conan-package.yml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. - 'packaging/**'
  30. - '.github/workflows/conan-*.yml'
  31. - '.github/workflows/notify.yml'
  32. - '.github/workflows/requirements-conan-package.txt'
  33. - 'requirements*.txt'
  34. - 'conanfile.py'
  35. - 'conandata.yml'
  36. - 'GitVersion.yml'
  37. - '*.jinja'
  38. branches:
  39. - main
  40. - 'CURA-*'
  41. - '[0-9]+.[0-9]+'
  42. tags:
  43. - '[0-9]+.[0-9]+.[0-9]+'
  44. - '[0-9]+.[0-9]+-beta'
  45. jobs:
  46. conan-recipe-version:
  47. uses: ultimaker/cura/.github/workflows/conan-recipe-version.yml@CURA-9365
  48. with:
  49. project_name: cura
  50. conan-package-export-macos:
  51. needs: [ conan-recipe-version ]
  52. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@5.1
  53. with:
  54. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  55. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  56. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  57. runs_on: 'macos-10.15'
  58. python_version: '3.10.4'
  59. conan_config_branch: 'master'
  60. conan_logging_level: 'info'
  61. conan_export_binaries: true
  62. secrets: inherit
  63. conan-package-export-linux:
  64. needs: [ conan-recipe-version ]
  65. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@5.1
  66. with:
  67. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  68. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  69. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  70. runs_on: 'ubuntu-20.04'
  71. python_version: '3.10.4'
  72. conan_config_branch: 'master'
  73. conan_logging_level: 'info'
  74. conan_export_binaries: true
  75. secrets: inherit
  76. conan-package-export-windows:
  77. needs: [ conan-recipe-version ]
  78. uses: ultimaker/cura/.github/workflows/conan-recipe-export.yml@5.1
  79. with:
  80. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  81. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  82. recipe_id_pr: ${{ needs.conan-recipe-version.outputs.recipe_id_pr }}
  83. runs_on: 'windows-2022'
  84. python_version: '3.10.4'
  85. conan_config_branch: 'master'
  86. conan_logging_level: 'info'
  87. conan_export_binaries: true
  88. secrets: inherit
  89. notify-export:
  90. if: always()
  91. needs: [ conan-package-export-linux, conan-package-export-macos, conan-package-export-windows ]
  92. uses: ultimaker/cura/.github/workflows/notify.yml@5.1
  93. with:
  94. success: ${{ contains(join(needs.*.result, ','), 'success') }}
  95. success_title: "New Conan recipe exported in ${{ github.repository }}"
  96. success_body: "Exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
  97. failure_title: "Failed to export Conan Export in ${{ github.repository }}"
  98. failure_body: "Failed to exported ${{ needs.conan-recipe-version.outputs.recipe_id_full }}"
  99. secrets: inherit