Skip to content

Commit eb1e008

Browse files
pmaiHabedank Clemens
authored andcommitted
Add documentation generation
Signed-off-by: Pierre R. Mai <pmai@pmsf.de> Signed-off-by: Habedank Clemens <qxs2704@europe.bmw.corp>
1 parent 69f1c91 commit eb1e008

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/protobuf.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
- name: Install Python Dependencies
2626
run: python -m pip install --upgrade pip setuptools wheel pyyaml
2727

28+
- name: Install Doxygen
29+
run: sudo apt-get install doxygen graphviz
30+
2831
- name: Cache Dependencies
2932
id: cache-depends
3033
uses: actions/cache@v2
@@ -45,12 +48,20 @@ jobs:
4548
working-directory: protobuf-3.11.3
4649
run: sudo make install && sudo ldconfig
4750

51+
- name: Install proto2cpp
52+
run: git clone --depth 1 https://github.com/OpenSimulationInterface/proto2cpp.git
53+
4854
- name: Prepare C++ Build
4955
run: mkdir build
5056

57+
- name: Prepare Documentation Bukd
58+
run: |
59+
echo "EXCLUDE_PATTERNS = */osi3/* */protobuf-3.11.3/* */proto2cpp/*" >> doxygen_config.cmake.in
60+
echo "GENERATE_TREEVIEW = YES" >> doxygen_config.cmake.in
61+
5162
- name: Configure C++ Build
5263
working-directory: build
53-
run: cmake ..
64+
run: cmake -D FILTER_PROTO2CPP_PY_PATH=$GITHUB_WORKSPACE/proto2cpp ..
5465

5566
- name: Build C++
5667
working-directory: build
@@ -65,3 +76,10 @@ jobs:
6576
- name: Run Python Tests
6677
run: python -m unittest discover tests
6778

79+
- name: Archive Documentation
80+
uses: actions/upload-artifact@v2
81+
with:
82+
name: linux64-doc
83+
path: doc/html
84+
if-no-files-found: error
85+

0 commit comments

Comments
 (0)