File tree Expand file tree Collapse file tree 5 files changed +19
-18
lines changed
Expand file tree Collapse file tree 5 files changed +19
-18
lines changed Original file line number Diff line number Diff line change 4040 mkdir cmake.output
4141 cd cmake.output
4242 cmake -G "Unix Makefiles" -DHAVE_RULES=On ..
43- make -j$(nproc)
43+ cmake --build . -- -j$(nproc)
4444 cd ..
4545
4646 - name : Test CMake build
4949 mkdir cmake.output
5050 cd cmake.output
5151 cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On ..
52- make - j$(nproc) check
52+ cmake --build . --target check -- - j$(nproc)
5353 cd ..
5454
5555 - name : Build cppcheck
Original file line number Diff line number Diff line change @@ -49,17 +49,27 @@ jobs:
4949 python -m pip install pytest
5050
5151 - name : Install Qt
52- if : contains(matrix.os, 'ubuntu')
5352 uses : jurplel/install-qt-action@v2
5453 with :
54+ version : ' 5.15.2'
5555 modules : ' qtcharts'
5656
57- - name : Test CMake build
57+ - name : Test CMake build (with GUI)
5858 run : |
5959 mkdir cmake.output
6060 cd cmake.output
61- cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On ..
62- make -j$(nproc) check
61+ cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On ..
62+ cmake --build . -- -j$(nproc)
63+ cd ..
64+
65+ - name : Run CMake test
66+ run : |
67+ cmake --build cmake.output --target check -- -j$(nproc)
68+
69+ - name : Run CTest
70+ run : |
71+ cd cmake.output
72+ ctest -j$(nproc)
6373 cd ..
6474
6575 - name : Build and test with Unsigned char
Original file line number Diff line number Diff line change 3838 run : |
3939 mkdir cmake.output
4040 cd cmake.output
41- cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DBUILD_TESTS=On -DBUILD_GUI=On - DWITH_QCHART=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On ..
41+ cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On ..
4242 cd ..
4343
4444 - name : Clang-Tidy
Original file line number Diff line number Diff line change 2727 tar xzvf uncrustify-0.72.0.tar.gz && cd uncrustify-uncrustify-0.72.0
2828 mkdir build
2929 cd build
30- cmake -DCMAKE_BUILD_TYPE=Release ..
31- make - j$(nproc) -s
30+ cmake -DCMAKE_BUILD_TYPE=Release ..
31+ cmake --build . -- - j$(nproc) -s
3232 mkdir ~/uncrustify
3333 cp uncrustify ~/uncrustify/
3434
Original file line number Diff line number Diff line change 3131static void unused ()
3232{
3333// NOTE: Keeping semi-colons at end of macro for style preference
34- #if ((QT_VERSION >= 0x040000) && (QT_VERSION < 0x050000))
35- Q_UNUSED (QT_TRANSLATE_NOOP (" QDialogButtonBox" , " OK" ));
36- Q_UNUSED (QT_TRANSLATE_NOOP (" QDialogButtonBox" , " Cancel" ));
37- Q_UNUSED (QT_TRANSLATE_NOOP (" QDialogButtonBox" , " Close" ));
38- Q_UNUSED (QT_TRANSLATE_NOOP (" QDialogButtonBox" , " Save" ));
39- #elif ((QT_VERSION >= 0x050000) && (QT_VERSION < 0x060000))
4034 Q_UNUSED (QT_TRANSLATE_NOOP (" QPlatformTheme" , " OK" ));
4135 Q_UNUSED (QT_TRANSLATE_NOOP (" QPlatformTheme" , " Cancel" ));
4236 Q_UNUSED (QT_TRANSLATE_NOOP (" QPlatformTheme" , " Close" ));
4337 Q_UNUSED (QT_TRANSLATE_NOOP (" QPlatformTheme" , " Save" ));
44- #else
45- #error Unsupported Qt version.
46- #endif
4738}
4839
4940TranslationHandler::TranslationHandler (QObject *parent) :
You can’t perform that action at this time.
0 commit comments