Skip to content

Commit 8c5e7df

Browse files
authored
Merge pull request #51 from Sichao25/yus/deploy_doxygen
Create separate workflow for doxygen deployment
2 parents 5916814 + b605a22 commit 8c5e7df

File tree

2 files changed

+93
-18
lines changed

2 files changed

+93
-18
lines changed

.github/workflows/cmake.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ jobs:
1919
# I think this is the minimal set needed for a public repo (https://github.com/github/codeql-action/pull/689).
2020
permissions:
2121
security-events: write
22-
contents: write
2322

2423
steps:
25-
- name: Install Dependencies
24+
- name: Install CMake
2625
run: |
2726
sudo apt-get update -yq
28-
sudo apt-get install -yq cmake doxygen
27+
sudo apt-get install -yq cmake
2928
cmake --version
3029
3130
## Kokkos
@@ -130,18 +129,3 @@ jobs:
130129
# only need to scan with a single build config if the installed cmake config files work
131130
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
132131
uses: github/codeql-action/analyze@v3
133-
134-
- name: Generate Doc
135-
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
136-
run: doxygen ${{github.workspace}}/build-meshFields/Doxyfile
137-
138-
- name: Upload artifact
139-
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
140-
uses: actions/upload-pages-artifact@v3
141-
with:
142-
path: ./docs/html
143-
144-
- name: Deploy to GitHub Pages
145-
if: matrix.compiler == 'g++' && matrix.build_type == 'Release'
146-
id: deployment
147-
uses: actions/deploy-pages@v4
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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

Comments
 (0)