-
Notifications
You must be signed in to change notification settings - Fork 37
63 lines (51 loc) · 1.64 KB
/
docs.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
53
54
55
56
57
58
59
60
61
62
63
name: Doxygen - GitHub Pages
on:
push:
branches:
- master
env:
BUILD_TYPE: Release
permissions:
contents: read
pages: write
id-token: write
jobs:
doxygen:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Requirements
run: |
sudo apt-get install libboost-system-dev libboost-filesystem-dev libboost-program-options-dev doxygen graphviz
- name: LLVM
working-directory: ${{runner.workspace}}
shell: bash
run: |
LLVM_NAME="clang+llvm-11.0.0-x86_64-linux-gnu-ubuntu-20.04"
wget https://github.com/llvm/llvm-project/releases/download/llvmorg-11.0.0/$LLVM_NAME.tar.xz
tar xf $LLVM_NAME.tar.xz
mv $LLVM_NAME llvm-lib
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
shell: bash
working-directory: ${{runner.workspace}}/build
run: |
export LLVM_DIR=${{runner.workspace}}/llvm-lib
cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=../install -DETISS_BUILD_MANUAL_DOC=ON
- name: Generate docs
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE --target doc
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ${{runner.workspace}}/build/doc/html
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4