-
Notifications
You must be signed in to change notification settings - Fork 22
54 lines (48 loc) · 1.5 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
# Just build documentation using Doxygen - no CUDA required
name: Docs
on:
# Branch pushes that do not only modify other workflow files
push:
branches:
- '**'
paths:
- "**"
- "!.github/**"
- ".github/workflows/Docs.yml"
# Disabled for now. See https://github.com/FLAMEGPU/FLAMEGPU2/pull/644
# pull_request:
# Allow manual invocation.
workflow_dispatch:
defaults:
run:
shell: bash
jobs:
doxygen:
runs-on: ubuntu-20.04
env:
# Define constants
BUILD_DIR: "build"
steps:
- uses: actions/checkout@v3
- name: Install doxygen >= 1.9.0 + other dependencies
run: |
# Install graphviz + dependencies to build doxygen from source
sudo apt -y install graphviz flex bison
# Download doxygen and build from source
wget --content-disposition https://github.com/doxygen/doxygen/archive/refs/tags/Release_1_9_1.tar.gz
tar -zxf doxygen-Release_1_9_1.tar.gz
mkdir -p doxygen-Release_1_9_1/build
cd doxygen-Release_1_9_1/build
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j `nproc`
echo "$(pwd)/bin" >> $GITHUB_PATH
- name: Configure cmake
run: >
cmake . -B "${{ env.BUILD_DIR }}"
-Werror=dev
-DCMAKE_WARN_DEPRECATED="OFF"
-DFLAMEGPU_WARNINGS_AS_ERRORS="ON"
-DFLAMEGPU_BUILD_API_DOCUMENTATION="ON"
- name: Docs
working-directory: ${{ env.BUILD_DIR }}
run: cmake --build . --target docs --verbose -j `nproc`