-
Notifications
You must be signed in to change notification settings - Fork 13
46 lines (38 loc) · 1.05 KB
/
doxygen.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
name: documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run_doxygen:
name: 'Compile Doxygen'
runs-on: ubuntu-latest
steps:
# Git repo set up
- name: Checkout commit
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install C++ project dependencies
run: sudo apt install libboost-all-dev
- name: Install Doxygen and Graphviz
run: sudo apt install doxygen graphviz
# CMake build and create docs
- name: CMake build
working-directory: ${{github.workspace}}
run: |
cmake -E make_directory ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake ..
- name: Make adiar_docs
working-directory: ${{github.workspace}}/build
run: make adiar_docs
# Deploy on GitHub Pages if pushed to main
- uses: JamesIves/[email protected]
if: ${{ github.event_name == 'push' }}
with:
branch: gh-pages
folder: ${{github.workspace}}/build/docs/html/