forked from SC-SGS/PLSSVM
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (50 loc) · 1.46 KB
/
documentation.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
name: Generate documentation
# only trigger this action on specific events
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
# checkout repository
- name: Checkout PLSSVM
uses: actions/checkout@v2
with:
path: PLSSVM
# install dependencies
- name: Dependancies
run: sudo apt-get install -y graphviz
- name: Get Doxygen
run: |
git clone https://github.com/doxygen/doxygen.git
cd doxygen
mkdir build
cd build
cmake -G "Unix Makefiles" ..
make -j 4
sudo make install
# configure project via CMake
- name: Configure
run: |
echo $PWD
export PATH=$PWD/doxygen-1.9.2/bin/:$PATH
cd PLSSVM
mkdir build
cd build
cmake -DPLSSVM_TARGET_PLATFORMS=cpu -DPLSSVM_ENABLE_DOCUMENTATION=ON -DPLSSVM_ENABLE_TESTING=OFF -DPLSSVM_ENABLE_CUDA_BACKEND=OFF -DPLSSVM_ENABLE_SYCL_BACKEND=OFF -DPLSSVM_ENABLE_OPENCL_BACKEND=OFF -DPLSSVM_ENABLE_SYCL_BACKEND=OFF ..
# build project
- name: Generate
run: |
cd PLSSVM/build
make doc
# deploy generated documentation using github.io
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./PLSSVM/docs/html