-
-
Notifications
You must be signed in to change notification settings - Fork 0
95 lines (79 loc) · 3.48 KB
/
docs.yml
File metadata and controls
95 lines (79 loc) · 3.48 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# ======================================================================================
#
# ░▒▓███████▓▒░░▒▓████████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░▒▓████████▓▒░
# ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
# ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
# ░▒▓███████▓▒░░▒▓██████▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
# ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
# ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░░▒▓█▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓█▓▒░
# ░▒▓███████▓▒░░▒▓████████▓▒░▒▓█▓▒░░▒▓█▓▒░ ░▒▓███████▓▒░ ░▒▓██████▓▒░ ░▒▓█▓▒░
#
# ======================================================================================
name: Docs
run-name: Build docs
on:
workflow_dispatch:
push:
branches: [main]
workflow_call:
inputs:
ref:
description: Git tag to checkout
type: string
required: true
concurrency:
group: ${{ github.workflow }}.${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
name: Build docs
timeout-minutes: 10
env:
CMAKE_BUILD_PARALLEL_LEVEL: 8
BUILD_DIR: Builds/clang
DEPLOY_DIR: deploy
steps:
- name: Install dependencies
run: sudo apt install doxygen graphviz
- name: Checkout code
uses: actions/checkout@v5
with:
ref: ${{ inputs.ref || github.ref }}
- name: Configure CMake
run: cmake --preset clang -D BENBOT_TESTS=OFF
- name: Build docs
run: cmake --build . --target ben_bot_docs
working-directory: ${{ env.BUILD_DIR }}
- name: Report Doxygen warnings
if: always()
run: |
echo "# Doxygen warnings" >> $GITHUB_STEP_SUMMARY
cat logs/Doxygen.log >> $GITHUB_STEP_SUMMARY
- name: Run CMake install
run: cmake --install ${{ env.BUILD_DIR }} --prefix ${{ env.DEPLOY_DIR }} --component ben_bot_docs
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
name: BenBot-docs
path: ${{ env.DEPLOY_DIR }}/share/doc/html
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
pages: write
id-token: write
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
with:
artifact_name: BenBot-docs