forked from eclipse-openbsw/openbsw
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (45 loc) · 1.25 KB
/
doxygen-build.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
name: Build and Deploy Doxygen Documentation
on: [workflow_call, pull_request]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
working-directory: ./doc
steps:
- name: Checkout code
uses: actions/checkout@v4
# - name: Cache Doxygen Installation
# uses: actions/cache@v3
# id: cache-doxygen-install
# with:
# path: /usr/local/bin/doxygen
# key: doxygen-install-cache
- name: Install Doxygen
# if: steps.cache-doxygen-install.outputs.cache-hit != 'true'
run: |
sudo apt-get install -y doxygen
which doxygen
- name: Run doxygen
run: doxygen Doxyfile
- name: Cache Doxygen Output
uses: actions/cache@v3
id: cache-doxygen
with:
path: |
doxygenOut/html
doxygenOut/xml
key: ${{ github.ref }}-doxygen-output
- name: Print Doxygen Warning Log
run: cat DoxygenWarningLog.txt
- name: Zip doxygen documentation
run: |
mv doxygenOut/html doxygen_docs
zip -r doxygen_docs.zip doxygen_docs
- name: Upload doxygen_docs
uses: actions/upload-artifact@v4
with:
name: doxygen_docs
path: ./doc/doxygen_docs.zip