1717 runs-on : ${{ matrix.os }}
1818
1919 env :
20- JOB_MAKE_ARGS : VERBOSE=1 BUILD_QT=ON USE_CLANG_TIDY=OFF
2120 QT_DEBUG_PLUGINS : 1
2221 QT_QPA_PLATFORM : offscreen
2322
@@ -80,33 +79,48 @@ jobs:
8079 echo "flake8 path: $(which flake8)"
8180 echo "flake8 version: $(flake8 --version)"
8281
83- - name : make buildext
82+ - name : make buildext BUILD_QT=OFF
8483 run : |
85- make buildext \
86- ${JOB_MAKE_ARGS} \
84+ rm -f build/*/Makefile
85+ make cmake \
86+ VERBOSE=1 USE_CLANG_TIDY=OFF \
87+ BUILD_QT=OFF \
8788 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
8889 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
90+ make buildext VERBOSE=1
8991
90- - name : make pytest
92+ - name : make pytest BUILD_QT=OFF
9193 run : |
92- make pytest \
93- ${JOB_MAKE_ARGS} \
94+ python3 -c "import modmesh; assert modmesh.HAS_VIEW == False"
95+ make pytest VERBOSE=1
96+
97+ - name : make buildext BUILD_QT=ON
98+ run : |
99+ rm -f build/*/Makefile
100+ make cmake \
101+ VERBOSE=1 USE_CLANG_TIDY=OFF \
102+ BUILD_QT=ON \
94103 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
95104 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
105+ make buildext VERBOSE=1
106+
107+ - name : make pytest BUILD_QT=ON
108+ run : |
109+ python3 -c "import modmesh; assert modmesh.HAS_VIEW == True"
110+ make pytest VERBOSE=1
96111
97112 - name : make viewer
98113 run : |
114+ rm -f build/*/Makefile
99115 make viewer \
100- ${JOB_MAKE_ARGS} \
116+ VERBOSE=1 USE_CLANG_TIDY=OFF \
117+ BUILD_QT=ON \
101118 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
102119 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
103120
104121 - name : make run_viewer_pytest
105122 run : |
106- make run_viewer_pytest \
107- ${JOB_MAKE_ARGS} \
108- CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
109- CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
123+ make run_viewer_pytest VERBOSE=1
110124
111125 build_macos :
112126
@@ -117,7 +131,6 @@ jobs:
117131 runs-on : ${{ matrix.os }}
118132
119133 env :
120- JOB_MAKE_ARGS : VERBOSE=1 BUILD_QT=ON USE_CLANG_TIDY=OFF
121134 QT_DEBUG_PLUGINS : 1
122135
123136 strategy :
@@ -180,36 +193,54 @@ jobs:
180193 echo "flake8 path: $(which flake8)"
181194 echo "flake8 version: $(flake8 --version)"
182195
183- - name : make buildext
196+ - name : make buildext BUILD_QT=OFF
184197 run : |
185- make buildext \
186- ${JOB_MAKE_ARGS} \
198+ rm -f build/*/Makefile
199+ make cmake \
200+ VERBOSE=1 USE_CLANG_TIDY=OFF \
201+ BUILD_QT=OFF \
187202 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
188203 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
204+ make buildext VERBOSE=1
189205
190- - name : make pytest
206+ - name : make pytest BUILD_QT=OFF
191207 run : |
208+ JOB_MAKE_ARGS="VERBOSE=1"
192209 if [ "${{ matrix.os }}" == "macos-12" ] ; then \
193210 JOB_MAKE_ARGS="${JOB_MAKE_ARGS} BUILD_METAL=ON" ; \
194211 fi
195- make pytest \
196- ${JOB_MAKE_ARGS} \
212+ make pytest ${JOB_MAKE_ARGS}
213+
214+ - name : make buildext BUILD_QT=ON
215+ run : |
216+ rm -f build/*/Makefile
217+ make cmake \
218+ VERBOSE=1 USE_CLANG_TIDY=OFF \
219+ BUILD_QT=ON \
197220 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
198221 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
222+ make buildext VERBOSE=1
223+
224+ - name : make pytest BUILD_QT=ON
225+ run : |
226+ JOB_MAKE_ARGS="VERBOSE=1"
227+ if [ "${{ matrix.os }}" == "macos-12" ] ; then \
228+ JOB_MAKE_ARGS="${JOB_MAKE_ARGS} BUILD_METAL=ON" ; \
229+ fi
230+ make pytest ${JOB_MAKE_ARGS}
199231
200232 - name : make viewer
201233 run : |
234+ rm -f build/*/Makefile
202235 make viewer \
203- ${JOB_MAKE_ARGS} \
236+ VERBOSE=1 USE_CLANG_TIDY=OFF \
237+ BUILD_QT=ON \
204238 CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
205239 CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
206240
207241 - name : make run_viewer_pytest
208242 run : |
209- make run_viewer_pytest \
210- ${JOB_MAKE_ARGS} \
211- CMAKE_BUILD_TYPE=${{ matrix.cmake_build_type }} \
212- CMAKE_ARGS="-DPYTHON_EXECUTABLE=$(which python3)"
243+ make run_viewer_pytest VERBOSE=1
213244
214245 build_windows :
215246
0 commit comments