-
Notifications
You must be signed in to change notification settings - Fork 79
38 lines (35 loc) · 1.06 KB
/
build-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
name: 'Build Documentation'
on:
push:
branches: [ main, stable, oldstable ]
jobs:
generate-doc-and-upload-coverage:
name: Build XML documentation and upload coverage
runs-on: ubuntu-latest
container: greenbone/doxygen
steps:
- name: Run the c lang coverage action
uses: greenbone/actions/doc-coverage-clang@v3
generate-xml-doc:
name: Generate documentation (XML)
runs-on: ubuntu-latest
container: greenbone/doxygen
steps:
- name: Check out gvmd
uses: actions/checkout@v4
- name: Generate documentation (XML)
run: |
mkdir build
cd build
cmake -DSKIP_SRC=1 ..
make doc-xml 2> ~/doxygen-stderr.txt
- name: Upload doxygen error output as artifact
uses: actions/upload-artifact@v3
with:
name: doxygen-stderr.txt
path: ~/doxygen-stderr.txt
- name: Upload XML documentation as artifact
uses: actions/upload-artifact@v3
with:
name: xml-doc
path: build/doc/generated/xml/