manual.yml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. # cmake_args_map_openfhe_lib holds job specific additional cmake options. As we are testing openfhe-python here
  55. # and not openfhe-development, we do not link unittest, benchmarks, etc. for openfhe-development.
  56. # compiler flags, native_backend flag and OpenMP flag are set in generic_workflow.yml
  57. jobs:
  58. call:
  59. uses: openfheorg/openfhe-python/.github/workflows/generic_workflow.yml@github-ci
  60. with:
  61. runner: ${{ vars.RUNNER }}
  62. compiler: "${{ inputs.compiler }}"
  63. native_backend: "${{ inputs.native_backend }}"
  64. openfhe_development_branch: "${{ inputs.openfhe_development_branch }}"
  65. cmake_args_map_openfhe_lib: '{
  66. "default" : "-DBUILD_BENCHMARKS=OFF -DBUILD_UNITTESTS=OFF -DBUILD_EXAMPLES=OFF",
  67. }'