Revert "Saving work 1" #148
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |