-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 975 Bytes
/
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
name: doxygen
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 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 cal_docs
working-directory: ${{github.workspace}}/build
run: make cal_docs
# Deploy on GitHub Pages if pushed to main
- uses: JamesIves/github-pages-deploy-action@4.1.4
if: ${{ github.event_name == 'push' }}
with:
branch: gh-pages
folder: ${{github.workspace}}/build/docs/html/