@@ -13,11 +13,13 @@ jobs:
1313 runs-on : ${{ matrix.os }}
1414
1515 env :
16- OS_VERSION : ${{ matrix.os }}
17- BUILD_CXX : ${{ matrix.build-cxx }}
18- BUILD_TYPE : ${{ matrix.build-type }}
19- CXX_VERSION : ${{ matrix.cxx-version }}
20- CHECK_OPTION : ${{ matrix.check-option }}
16+ OS_VERSION : ${{ matrix.os }}
17+ BUILD_CXX : ${{ matrix.build-cxx }}
18+ BUILD_TYPE : ${{ matrix.build-type }}
19+ CXX_VERSION : ${{ matrix.cxx-version }}
20+ CHECK_OPTION : ${{ matrix.check-option }}
21+ GENERATE_DOC : ${{ matrix.generate-doc }}
22+ WITH_INSTALLATION : ${{ matrix.with-installation }}
2123
2224 strategy :
2325 matrix :
5254
5355 - os : ubuntu-20.04
5456 build-cxx : clang++
57+ generate-doc : true
58+ with-installation : true
5559
5660 - os : ubuntu-20.04
5761 build-cxx : clang++
@@ -119,6 +123,13 @@ jobs:
119123 wget -nv ${KAFKA_SRC_LINK}
120124 tar -xzf `basename ${KAFKA_SRC_LINK}`
121125
126+ # 6. Install tools to generate document
127+ if [ ${GENERATE_DOC} ]; then
128+ sudo apt install -y python3-pip
129+ sudo pip3 install markdown
130+ sudo apt install -y doxygen
131+ fi
132+
122133 - name : Config
123134 run : |
124135 cd ${BUILD_SUB_DIR}
@@ -149,14 +160,24 @@ jobs:
149160 export BUILD_OPTION="${BUILD_OPTION} -DBUILD_OPTION_USE_UBSAN=ON"
150161 fi
151162
163+ if [ ${GENERATE_DOC} ]; then
164+ export BUILD_OPTION="${BUILD_OPTION} -DBUILD_OPTION_GEN_DOC=ON"
165+ fi
166+
152167 env CXX=${BUILD_CXX} cmake ../.. ${CMAKE_CXX_FLAGS} ${CMAKE_BUILD_TYPE} ${BUILD_OPTION}
153168
154169 - name : Build
155170 run : |
156171 cd ${BUILD_SUB_DIR}
157-
158172 make -j${CPU_CORE_NUM} VERBOSE=1
159173
174+ - name : Install
175+ run : |
176+ if [ ${WITH_INSTALLATION} ]; then
177+ cd ${BUILD_SUB_DIR}
178+ sudo make install
179+ fi
180+
160181 - name : Test
161182 timeout-minutes : 15
162183 run : |
0 commit comments