-
Notifications
You must be signed in to change notification settings - Fork 195
127 lines (124 loc) · 4.16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
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: 'CLANG-18'
native_backend:
description: 'Size of NativeInteger'
type: string
required: true
default: '64'
mb2_jobs:
description: 'MATHBACKEND2 jobs'
type: string
required: true
default: 'none'
mb4_jobs:
description: 'MATHBACKEND4 jobs'
type: string
required: true
default: 'none'
mb6_jobs:
description: 'MATHBACKEND6 jobs'
type: string
required: true
default: 'none'
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-9'
- 'GCC-10'
- 'GCC-11'
- 'GCC-12'
- 'GCC-13'
- 'GCC-14'
- 'CLANG-14 (WITH_OPENMP=OFF)'
- 'CLANG-15 (WITH_OPENMP=OFF)'
- 'CLANG-16 (WITH_OPENMP=OFF)'
- 'CLANG-17 (WITH_OPENMP=OFF)'
- 'CLANG-18'
required: true
default: 'CLANG-18'
native_backend:
description: 'Size of NativeInteger'
type: choice
options:
- '32'
- '64'
- '128'
- 'all'
required: true
default: '64'
mb2_jobs:
description: 'MATHBACKEND2 jobs'
type: choice
options:
- 'mb2'
- 'mb2_tcm'
- 'mb2_debug'
- 'all'
- 'none'
required: true
default: 'none'
mb4_jobs:
description: 'MATHBACKEND4 jobs'
type: choice
options:
- 'mb4'
- 'mb4_tcm'
- 'mb4_debug'
- 'all'
- 'none'
required: true
default: 'none'
mb6_jobs:
description: 'MATHBACKEND6 jobs'
type: choice
options:
- 'mb6_ntl'
- 'mb6_ntl_tcm'
- 'mb6_ntl_debug_tcm'
- 'all'
- 'none'
required: true
default: 'none'
jobs:
call:
uses: openfheorg/openfhe-development/.github/workflows/generic_workflow.yml@github-ci
with:
runner: ${{ vars.RUNNER }}
compiler: "${{ inputs.compiler }}"
native_backend: "${{ inputs.native_backend }}"
mb2_jobs: "${{ inputs.mb2_jobs }}"
mb4_jobs: "${{ inputs.mb4_jobs }}"
mb6_jobs: "${{ inputs.mb6_jobs }}"
# cmake_args_map holds job specific additional cmake options. compiler flags, native_backend flag and
# OpenMP flag are set in generic_workflow.yml
cmake_args_map: '{
"default" : "-DBUILD_EXTRAS=ON",
"mb2" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=2",
"mb2_tcm" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=2 -DWITH_TCM=ON",
"mb2_debug" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=2 -DCMAKE_BUILD_TYPE=Debug",
"mb4" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=4",
"mb4_tcm" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=4 -DWITH_TCM=ON",
"mb4_debug" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=4 -DCMAKE_BUILD_TYPE=Debug",
"mb6_ntl" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=6 -DWITH_NTL=ON",
"mb6_ntl_tcm" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=6 -DWITH_NTL=ON -DWITH_TCM=ON",
"mb6_ntl_debug_tcm" : "-DBUILD_EXTRAS=ON -DMATHBACKEND=6 -DWITH_NTL=ON -DWITH_TCM=ON -DCMAKE_BUILD_TYPE=Debug",
}'