manual.yml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. name: Manual
  2. # the workflow_call block was added to this manual workflow (on workflow_dispatch:) because
  3. # it has to be included if a reuseable workflow is called.
  4. # The changes from the workflow_dispatch inputs to the workflow_call inputs are:
  5. # - "type: choice" is replaced with "type: string"
  6. # - all "options:" are removed
  7. # The variable/tag for the runner (var.RUNNER) is defined on the "Actions secrets and variables" page, tab "Variables":
  8. # https://github.com/openfheorg/openfhe-development/settings/variables/actions
  9. on:
  10. workflow_call:
  11. inputs:
  12. compiler:
  13. description: 'Compiler type'
  14. type: string
  15. required: true
  16. default: 'GLANG-14'
  17. native_backend:
  18. description: 'Size of NativeInteger'
  19. type: string
  20. required: true
  21. default: '64'
  22. openfhe_development_branch:
  23. description: 'openfhe-development branch'
  24. type: string
  25. required: true
  26. default: 'main'
  27. workflow_dispatch:
  28. inputs:
  29. # # Selects the compiler to use, this choice will be used in the COMPILERS_MAP as the key to
  30. # # retrieve the corresponding cmake compiler options to pass to the action
  31. compiler:
  32. description: 'Compiler type'
  33. type: choice
  34. options:
  35. - 'GCC-12'
  36. - 'CLANG-14'
  37. required: true
  38. default: 'GLANG-14'
  39. native_backend:
  40. description: 'Size of NativeInteger'
  41. type: choice
  42. options:
  43. - '32'
  44. - '64'
  45. - '128'
  46. - 'all'
  47. required: true
  48. default: '64'
  49. openfhe_development_branch:
  50. description: 'openfhe-development branch'
  51. type: string
  52. required: true
  53. default: 'main'
  54. jobs:
  55. call:
  56. uses: openfheorg/openfhe-python/.github/workflows/generic_workflow.yml@github-ci
  57. with:
  58. runner: ${{ vars.RUNNER }}
  59. compiler: "${{ inputs.compiler }}"
  60. native_backend: "${{ inputs.native_backend }}"
  61. openfhe_development_branch: "${{ inputs.openfhe_development_branch }}"
  62. # cmake_args_map holds job specific additional cmake options. compiler flags, native_backend flag and
  63. # OpenMP flag are set in generic_workflow.yml
  64. cmake_args_map: '{
  65. "default" : "-DBUILD_EXTRAS=ON",
  66. }'