Skip to content

Commit 01c789b

Browse files
Added workflows/manual.yml
1 parent d3c101f commit 01c789b

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/manual.yml

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

0 commit comments

Comments
 (0)