Test GUI build CMake in CI (#3621)
This commit is contained in:
parent
16110b6157
commit
dafb2fe6a0
|
@ -40,7 +40,7 @@ jobs:
|
|||
mkdir cmake.output
|
||||
cd cmake.output
|
||||
cmake -G "Unix Makefiles" -DHAVE_RULES=On ..
|
||||
make -j$(nproc)
|
||||
cmake --build . -- -j$(nproc)
|
||||
cd ..
|
||||
|
||||
- name: Test CMake build
|
||||
|
@ -49,7 +49,7 @@ jobs:
|
|||
mkdir cmake.output
|
||||
cd cmake.output
|
||||
cmake -G "Unix Makefiles" -DHAVE_RULES=On -DBUILD_TESTS=On ..
|
||||
make -j$(nproc) check
|
||||
cmake --build . --target check -- -j$(nproc)
|
||||
cd ..
|
||||
|
||||
- name: Build cppcheck
|
||||
|
|
|
@ -49,17 +49,27 @@ jobs:
|
|||
python -m pip install pytest
|
||||
|
||||
- name: Install Qt
|
||||
if: contains(matrix.os, 'ubuntu')
|
||||
uses: jurplel/install-qt-action@v2
|
||||
with:
|
||||
version: '5.15.2'
|
||||
modules: 'qtcharts'
|
||||
|
||||
- name: Test CMake build
|
||||
- name: Test CMake build (with GUI)
|
||||
run: |
|
||||
mkdir cmake.output
|
||||
cd cmake.output
|
||||
cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On ..
|
||||
make -j$(nproc) check
|
||||
cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On ..
|
||||
cmake --build . -- -j$(nproc)
|
||||
cd ..
|
||||
|
||||
- name: Run CMake test
|
||||
run: |
|
||||
cmake --build cmake.output --target check -- -j$(nproc)
|
||||
|
||||
- name: Run CTest
|
||||
run: |
|
||||
cd cmake.output
|
||||
ctest -j$(nproc)
|
||||
cd ..
|
||||
|
||||
- name: Build and test with Unsigned char
|
||||
|
|
|
@ -38,7 +38,7 @@ jobs:
|
|||
run: |
|
||||
mkdir cmake.output
|
||||
cd cmake.output
|
||||
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 ..
|
||||
cmake -G "Unix Makefiles" -DUSE_Z3=On -DHAVE_RULES=On -DBUILD_TESTS=On -DBUILD_GUI=On -DWITH_QCHART=On -DCMAKE_GLOBAL_AUTOGEN_TARGET=On ..
|
||||
cd ..
|
||||
|
||||
- name: Clang-Tidy
|
||||
|
|
|
@ -28,7 +28,7 @@ jobs:
|
|||
mkdir build
|
||||
cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=Release ..
|
||||
make -j$(nproc) -s
|
||||
cmake --build . -- -j$(nproc) -s
|
||||
mkdir ~/uncrustify
|
||||
cp uncrustify ~/uncrustify/
|
||||
|
||||
|
|
|
@ -31,19 +31,10 @@
|
|||
static void unused()
|
||||
{
|
||||
// NOTE: Keeping semi-colons at end of macro for style preference
|
||||
#if ((QT_VERSION >= 0x040000) && (QT_VERSION < 0x050000))
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QDialogButtonBox", "OK"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QDialogButtonBox", "Cancel"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QDialogButtonBox", "Close"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QDialogButtonBox", "Save"));
|
||||
#elif ((QT_VERSION >= 0x050000) && (QT_VERSION < 0x060000))
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QPlatformTheme", "OK"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QPlatformTheme", "Cancel"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QPlatformTheme", "Close"));
|
||||
Q_UNUSED(QT_TRANSLATE_NOOP("QPlatformTheme", "Save"));
|
||||
#else
|
||||
#error Unsupported Qt version.
|
||||
#endif
|
||||
}
|
||||
|
||||
TranslationHandler::TranslationHandler(QObject *parent) :
|
||||
|
|
Loading…
Reference in New Issue