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