-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.32 KB
/
documentation.yaml
File metadata and controls
48 lines (40 loc) · 1.32 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
46
47
48
name: Documentation
on: [push, workflow_dispatch]
jobs:
build:
name: Build and publish documentation
runs-on: ubuntu-20.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libclang1-9 libclang-cpp9
- name: Doxygen 1.9.2
env:
DOXYGEN_VERSION: 1.9.2
TMP: ${{ github.workspace }}/tmp
run: |
mkdir -p $TMP/doxygen
cd $TMP/doxygen
wget http://www.doxygen.nl/files/doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz
gunzip doxygen-$DOXYGEN_VERSION.linux.bin.tar.gz
tar -xf doxygen-$DOXYGEN_VERSION.linux.bin.tar
cd doxygen-$DOXYGEN_VERSION
sudo make install
doxygen --version
- name: Checkout
uses: actions/checkout@v2
- name: Configure cache
uses: actions/cache@v2
with:
path: "**/cpm_modules"
key: ${{ runner.os }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('**/*.cmake') }}
- name: Build
run: |
cmake -S doc -B build
cmake --build build --target generate_documentation
- name: Publish
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html