conan-package.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. - '[1-9].[0-9]'
  42. - '[1-9].[0-9][0-9]'
  43. tags:
  44. - '[1-9].[0-9].[0-9]*'
  45. - '[1-9].[0-9].[0-9]'
  46. - '[1-9].[0-9][0-9].[0-9]*'
  47. env:
  48. CONAN_LOGIN_USERNAME_CURA: ${{ secrets.CONAN_USER }}
  49. CONAN_PASSWORD_CURA: ${{ secrets.CONAN_PASS }}
  50. # FIXME: point to `main` once merged
  51. jobs:
  52. conan-recipe-version:
  53. uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-version.yml@CURA-10831
  54. with:
  55. project_name: cura
  56. conan-package-export:
  57. needs: [ conan-recipe-version ]
  58. uses: ultimaker/cura-workflows/.github/workflows/conan-recipe-export.yml@CURA-10831
  59. with:
  60. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  61. recipe_id_latest: ${{ needs.conan-recipe-version.outputs.recipe_id_latest }}
  62. secrets: inherit
  63. conan-package-create-linux:
  64. needs: [ conan-recipe-version, conan-package-export ]
  65. uses: ultimaker/cura-workflows/.github/workflows/conan-package-create-linux.yml@CURA-10831
  66. with:
  67. recipe_id_full: ${{ needs.conan-recipe-version.outputs.recipe_id_full }}
  68. conan_extra_args: '-c tools.build:skip_test=True -o ${{ needs.conan-recipe-version.outputs.project_name }}:enable_i18n=True'
  69. secrets: inherit