-
-
Notifications
You must be signed in to change notification settings - Fork 106
110 lines (96 loc) · 3.41 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
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Doxygen
on: [push]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
build:
if: false
strategy:
matrix:
os: [Ubuntu-20.04]
runs-on: ${{matrix.os}}
env:
BUILD_TYPE: Release
SOURCE_DIR: ${{github.workspace}}/.cache/source
TOOSL_DIR: ${{github.workspace}}/.cache/tools
INSTALL_DIR: ${{github.workspace}}/.cache/install_ubuntu
RabbitRemoteControl_VERSION: v0.0.27
DOXYGEN_VERSION: 1.9.5
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: make_directory
run: |
cmake -E make_directory ${{env.SOURCE_DIR}}
cmake -E make_directory ${{env.TOOSL_DIR}}
cmake -E make_directory ${{env.INSTALL_DIR}}
- name: Cache installed
uses: actions/cache@v2
id: cache-installed
with:
path: |
${{env.TOOSL_DIR}}
key: cache-installed-doxygen-${{matrix.os}}
- name: git clone RabbitCommon
working-directory: ${{env.SOURCE_DIR}}
run: git clone https://github.com/KangLin/RabbitCommon.git
- name: apt helper action
uses: ryankurte/[email protected]
with:
# architectures to pass to dpkg --add-architecture
#architectures: # optional
# apt packages to install
packages: cmake build-essential graphviz qttools5-dev qttools5-dev-tools qtbase5-dev qtbase5-dev-tools
- name: Download doxygen
run: |
if [ ! -d ${{env.TOOSL_DIR}}/doxygen-${{env.DOXYGEN_VERSION}} ]; then
cd ${{env.TOOSL_DIR}}
wget https://www.doxygen.nl/files/doxygen-${{env.DOXYGEN_VERSION}}.linux.bin.tar.gz
tar xzf doxygen-${{env.DOXYGEN_VERSION}}.linux.bin.tar.gz
fi
sudo cp ${{env.TOOSL_DIR}}/doxygen-${{env.DOXYGEN_VERSION}}/bin/doxygen /usr/bin/doxygen
- name: build doxygen
working-directory: ${{github.workspace}}
env:
RabbitCommon_DIR: ${{env.SOURCE_DIR}}/RabbitCommon
BUILD_DOCS: ON
run: |
cmake -E make_directory ${{github.workspace}}/build
cd ${{github.workspace}}/build
cmake ${{github.workspace}} \
-DBUILD_APP:BOOL=OF \
-DBUILD_CLIENT:BOOL=OFF \
-DBUILD_PLUGINS:BOOL=OFF \
-DBUILD_SERVICE:BOOL=OFF \
-DBUILD_ABOUT:BOOL=OFF \
-DBUILD_ADMINAUTHORISER:BOOL=OFF \
-DBUILD_UPDATE:BOOL=OFF \
-DCMARK_SHARED=OFF \
-DCMARK_TESTS=OFF \
-DCMARK_STATIC=ON \
-DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} \
-DCMAKE_INSTALL_PREFIX=${{github.workspace}}/build/install \
-DBUILD_DOCS=ON
cmake --build . --target doc_Chinese doc_English
- name: update
uses: actions/upload-artifact@v2
with:
name: rabbitremotecontrol_doxygen_${{ matrix.os }}
path: |
build/Doxygen
- name: Deploy to GitHub Pages
if: startsWith(github.ref, 'refs/tags/')
uses: crazy-max/ghaction-github-pages@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
target_branch: gh-pages
build_dir: build/Doxygen
# - name: Upload Documentation to Wiki
# if: startsWith(github.ref, 'refs/tags/')
# uses: SwiftDocOrg/github-wiki-publish-action@v1
# with:
# path: build/Doxygen
# env:
# GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}