-
Notifications
You must be signed in to change notification settings - Fork 99
68 lines (58 loc) · 1.68 KB
/
docs.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
name: github-DOCS
on:
pull_request:
branches:
- master
- develop
permissions:
contents: none
jobs:
docs-check:
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt install doxygen
pip install sphinx
pip install breathe
pip install sphinx-rtd-theme
- name: checkout_kokkos_kernels
uses: actions/checkout@v2
with:
path: kokkos-kernels
- name: checkout_kokkos
uses: actions/checkout@v2
with:
repository: kokkos/kokkos
ref: develop
path: kokkos
- name: configure_kokkos
run: |
mkdir -p kokkos/{build,install}
cd kokkos/build
cmake \
-DCMAKE_CXX_FLAGS="-Werror" \
-DCMAKE_CXX_STANDARD=17 \
-DCMAKE_INSTALL_PREFIX=$PWD/../install \
-DKokkos_ENABLE_COMPILER_WARNINGS=ON \
-DKokkos_ENABLE_DEPRECATED_CODE_3=OFF \
-DKokkos_ENABLE_TESTS=OFF \
..
- name: build_and_install_kokkos
working-directory: kokkos/build
run: make -j2 install
- name: configure_kokkos_kernels
run: |
mkdir -p kokkos-kernels/{build,install}
cd kokkos-kernels/build
cmake \
-DKokkos_DIR=$PWD/../../kokkos/install/lib/cmake/Kokkos \
-DCMAKE_INSTALL_PREFIX=$PWD/../install \
-DKokkosKernels_ENABLE_DOCS=ON \
..
- name: build_kokkos_kernels_doxygen
working-directory: kokkos-kernels/build
run: make Doxygen
- name: build_kokkos_kernels_sphinx
working-directory: kokkos-kernels/build
run: make Sphinx