-
Notifications
You must be signed in to change notification settings - Fork 11
51 lines (41 loc) · 1.69 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
47
48
49
50
51
name: doxygen
on:
push:
pull_request:
branches: [master]
jobs:
build:
name: Build and deploy Doxygen documentation
runs-on: ubuntu-latest
steps:
- name: Clone recursively
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install newest g++, gdb, graphviz, texlive
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install g++-13 gdb graphviz texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
export CXX=g++-13
- name: Install Doxygen
run: |
wget https://www.doxygen.nl/files/doxygen-1.12.0.linux.bin.tar.gz
tar xf doxygen-1.12.0.linux.bin.tar.gz
- name: Install Ghostscript
run: |
mkdir -p ${HOME}/.local/bin
echo "${HOME}/.local/bin" >> $GITHUB_PATH
wget https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs1000/ghostscript-10.0.0-linux-x86_64.tgz
tar xf ghostscript-10.0.0-linux-x86_64.tgz
mv ghostscript-10.0.0-linux-x86_64/gs-1000-linux-x86_64 ${HOME}/.local/bin/gs
- name: Configure
run: CXX=g++-13 cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=Debug -DMIM_BUILD_DOCS=ON -DDOXYGEN_EXECUTABLE=${{github.workspace}}/doxygen-1.12.0/bin/doxygen
- name: Build
run: cmake --build ${{github.workspace}}/build -v --target docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{github.workspace}}/build/html