1+ name : Doxygen GitHub Pages Deploy Action
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-22.04
11+ permissions :
12+ contents : read
13+ pages : write
14+ id-token : write
15+ steps :
16+ - uses : actions/checkout@v4
17+ with :
18+ submodules : recursive
19+
20+ - name : Install dependencies
21+ run : |
22+ sudo apt update
23+ sudo apt install g++ cmake doxygen
24+
25+ - name : Kokkos Checkout repo
26+ uses : actions/checkout@v4
27+ with :
28+ repository : kokkos/kokkos
29+ path : kokkos
30+
31+ - name : Kokkos Configure CMake
32+ shell : bash
33+ run : cmake -S $GITHUB_WORKSPACE/kokkos -B ${{runner.workspace}}/build-kokkos
34+ -DCMAKE_CXX_COMPILER=g++
35+ -DKokkos_ENABLE_SERIAL=ON
36+ -DKokkos_ENABLE_OPENMP=OFF
37+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/build-kokkos/install
38+
39+ - name : Kokkos Build
40+ shell : bash
41+ run : cmake --build ${{runner.workspace}}/build-kokkos --parallel 2 --target install
42+
43+ # # Omegah
44+ - name : Omega_h Checkout repo
45+ uses : actions/checkout@v4
46+ with :
47+ repository : sandialabs/omega_h
48+ path : omegah
49+
50+ - name : Omega_h Configure CMake
51+ shell : bash
52+ run : cmake -S $GITHUB_WORKSPACE/omegah -B ${{runner.workspace}}/build-omegah
53+ -DCMAKE_BUILD_TYPE=Release
54+ -DCMAKE_CXX_COMPILER=g++
55+ -DBUILD_SHARED_LIBS=OFF
56+ -DOmega_h_USE_Kokkos=ON
57+ -DKokkos_PREFIX=${{runner.workspace}}/build-kokkos/install/lib/cmake
58+ -DOmega_h_USE_MPI=OFF
59+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/build-omegah/install
60+
61+ - name : Omega_h Build
62+ shell : bash
63+ run : cmake --build ${{runner.workspace}}/build-omegah --parallel 2 --target install
64+
65+ # # MeshFields
66+ - name : MeshFields Checkout repo
67+ uses : actions/checkout@v4
68+ with :
69+ repository : SCOREC/meshFields
70+ path : meshFields
71+
72+ - name : MeshFields Configure CMake
73+ shell : bash
74+ run : cmake -S $GITHUB_WORKSPACE/meshFields -B ${{runner.workspace}}/build-meshFields
75+ -DCMAKE_CXX_COMPILER=g++
76+ -DKokkos_ROOT=${{runner.workspace}}/build-kokkos/install
77+ -DMeshFields_USE_Cabana=OFF
78+ -DOmega_h_ROOT=${{runner.workspace}}/build-omegah/install
79+ -DCMAKE_INSTALL_PREFIX=${{runner.workspace}}/build-meshFields/install
80+
81+ - name : Generate Doc
82+ run : doxygen ${{runner.workspace}}/build-meshFields/Doxyfile
83+
84+ - name : Upload artifact
85+ uses : actions/upload-pages-artifact@v3
86+ with :
87+ path : ./docs/html
88+
89+ - name : Deploy to GitHub Pages
90+ id : deployment
91+ uses : actions/deploy-pages@v4
0 commit comments