File tree 4 files changed +25
-18
lines changed
4 files changed +25
-18
lines changed Original file line number Diff line number Diff line change 1
- name : cucumber-cpp ubuntu-latest
1
+ name : cucumber-cpp ubuntu
2
2
3
- on :
3
+ on :
4
4
pull_request :
5
5
branches : [ main ]
6
6
push :
@@ -16,16 +16,21 @@ jobs:
16
16
# well on Windows or Mac. You can convert this to a matrix build if you need
17
17
# cross-platform coverage.
18
18
# See: https://docs.github.com./en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19
- runs-on : ubuntu-latest
19
+
20
+ strategy :
21
+ matrix :
22
+ os : [ubuntu-22.04, ubuntu-20.04]
23
+
24
+ runs-on : ${{ matrix.os }}
20
25
21
26
steps :
22
27
- uses : actions/checkout@v2
23
-
28
+
24
29
- name : setup environment
25
30
run : |
26
- sudo apt-get install libboost1.71 -all-dev
31
+ sudo apt-get install libboost -all-dev
27
32
sudo apt-get install qtbase5-dev
28
-
33
+
29
34
- name : Configure CMake
30
35
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
31
36
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
37
42
38
43
- name : Test
39
44
working-directory : ${{github.workspace}}/build
40
- # Execute tests defined by the CMake configuration.
45
+ # Execute tests defined by the CMake configuration.
41
46
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
42
47
run : ctest -C ${{env.BUILD_TYPE}}
43
-
48
+
Original file line number Diff line number Diff line change @@ -242,14 +242,16 @@ if(CUKE_ENABLE_QT)
242
242
message (STATUS "C++11 is needed from Qt version 5.7.0, building with c++11 enabled" )
243
243
set (CMAKE_CXX_STANDARD 11)
244
244
endif ()
245
- add_library (Qt::Core INTERFACE IMPORTED )
246
- add_library (Qt::Gui INTERFACE IMPORTED )
247
- add_library (Qt::Widgets INTERFACE IMPORTED )
248
- add_library (Qt::Test INTERFACE IMPORTED )
249
- set_target_properties (Qt::Core PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Core )
250
- set_target_properties (Qt::Gui PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Gui )
251
- set_target_properties (Qt::Widgets PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Widgets)
252
- set_target_properties (Qt::Test PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Test )
245
+ if (Qt5Core_VERSION_STRING VERSION_LESS 5.15.0)
246
+ add_library (Qt::Core INTERFACE IMPORTED )
247
+ add_library (Qt::Gui INTERFACE IMPORTED )
248
+ add_library (Qt::Widgets INTERFACE IMPORTED )
249
+ add_library (Qt::Test INTERFACE IMPORTED )
250
+ set_target_properties (Qt::Core PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Core )
251
+ set_target_properties (Qt::Gui PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Gui )
252
+ set_target_properties (Qt::Widgets PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Widgets)
253
+ set_target_properties (Qt::Test PROPERTIES INTERFACE_LINK_LIBRARIES Qt5::Test )
254
+ endif ()
253
255
else ()
254
256
find_package (Qt4 COMPONENTS QtCore QtGui QtTest)
255
257
if (QT4_FOUND)
Original file line number Diff line number Diff line change 6
6
#include < QPushButton>
7
7
#include < QSignalMapper>
8
8
9
- CalculatorWidget::CalculatorWidget (QWidget *parent, Qt::WindowFlags flags ) : QWidget(parent, flags ) {
9
+ CalculatorWidget::CalculatorWidget (QWidget *parent) : QWidget(parent) {
10
10
QGridLayout *layout = new QGridLayout (this );
11
11
layout->setSizeConstraint (QLayout::SetFixedSize);
12
12
setLayout (layout);
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ class CalculatorWidget : public QWidget {
10
10
11
11
public:
12
12
13
- CalculatorWidget (QWidget *parent = 0 , Qt::WindowFlags flags = 0 );
13
+ CalculatorWidget (QWidget *parent = 0 );
14
14
15
15
QString display ();
16
16
You can’t perform that action at this time.
0 commit comments