-
Notifications
You must be signed in to change notification settings - Fork 194
83 lines (76 loc) · 3.37 KB
/
main.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
name: Main
on:
push:
branches:
- main
jobs:
call_with_gcc:
uses: openfheorg/openfhe-development/.github/workflows/generic_workflow.yml@github-ci
with:
runner: ${{ vars.RUNNER }}
compiler: "GCC-11"
native_backend: "all"
mb2_jobs: "all"
mb4_jobs: "all"
mb6_jobs: "all"
# 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",
}'
call_with_clang:
needs: call_with_gcc
uses: openfheorg/openfhe-development/.github/workflows/generic_workflow.yml@github-ci
with:
runner: ${{ vars.RUNNER }}
compiler: "CLANG-14"
native_backend: "all"
mb2_jobs: "all"
mb4_jobs: "all"
mb6_jobs: "all"
# 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",
}'
###############################################
#
# Pages jobs starts here
#
###############################################
pages:
needs: call_with_clang
runs-on: ${{ vars.RUNNER }}
env:
GIT_SUBMODULE_STRATEGY: recursive
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: build_docs
run: |
whoami
cd docs
make
- name: deploy_docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs