-
Notifications
You must be signed in to change notification settings - Fork 12
45 lines (43 loc) · 1.17 KB
/
documentation.yml
File metadata and controls
45 lines (43 loc) · 1.17 KB
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
name: Generate documentation
# only trigger this action on specific events
on:
push:
branches:
- main
- documentation
pull_request:
branches:
- main
jobs:
build-documentation:
runs-on: ubuntu-latest
steps:
# checkout repository
- name: "Checkout PLSSVM"
uses: actions/checkout@v6.0.1
with:
path: PLSSVM
# install dependencies
- name: "Dependencies"
run: |
sudo apt update
sudo apt-get install -y doxygen graphviz
# install new CMake version
- name: "Install cmake 4.2.1"
uses: lukka/get-cmake@v4.2.1
# configure project via CMake
- name: "Configure"
run: |
cd PLSSVM
cmake --preset openmp -DPLSSVM_TARGET_PLATFORMS="cpu" -DPLSSVM_ENABLE_DOCUMENTATION=ON
# build project
- name: "Generate"
run: |
cd PLSSVM
cmake --build --preset openmp --target doc
# deploy generated documentation using github.io
- name: "Deploy"
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./PLSSVM/docs/html