From af768f44a7fda109fd4886fcd008c0fd3cdbc764 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:11:40 +0000 Subject: Create build-linux-cmake.yml --- .github/workflows/build-linux-cmake.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/build-linux-cmake.yml diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml new file mode 100644 index 0000000..da09711 --- /dev/null +++ b/.github/workflows/build-linux-cmake.yml @@ -0,0 +1,17 @@ +name: C/C++ CI + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + + - name: cmake + run: cmake . + + - name: make + run: make -- cgit v1.2.1 From 275dcf3fc029002b5498b22370b571747ffe60d6 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:18:30 +0000 Subject: Added step to install Qt in GitHub Actions --- .github/workflows/build-linux-cmake.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index da09711..f591545 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -8,8 +8,13 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - + - uses: actions/checkout@v2 + + - name: Install Qt + uses: jurplel/install-qt-action@v2.2.1 + with: + version: 5.12.6 + - name: cmake run: cmake . -- cgit v1.2.1 From 4e4f310a588ac7c575fc5fb366a6452cd173c3e6 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:26:13 +0000 Subject: Github Actions: Building examples as well --- .github/workflows/build-linux-cmake.yml | 32 ++++++++++++++++++++++++++++---- 1 file changed, 28 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index f591545..f7d5b7a 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -6,17 +6,41 @@ jobs: build: runs-on: ubuntu-latest - + steps: - uses: actions/checkout@v2 - + - name: Install Qt uses: jurplel/install-qt-action@v2.2.1 with: version: 5.12.6 - + - name: cmake run: cmake . - + - name: make run: make + + - name: Build example - basic (cmake) + run: cmake . + working-directory: examples/basic/ + + - name: Build example - basic (make) + run: make + working-directory: examples/basic/ + + - name: Build example - calculator (cmake) + run: cmake . + working-directory: examples/calculator/ + + - name: Build example - calculator (make) + run: make + working-directory: examples/calculator/ + + - name: Build example - sending_arguments (cmake) + run: cmake . + working-directory: examples/sending_arguments/ + + - name: Build example - sending_arguments (make) + run: make + working-directory: examples/sending_arguments/ -- cgit v1.2.1 From 0296d0b61e6de73b516320c34459e21a16e9a54b Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:35:41 +0000 Subject: Github Action building with multiple Qt versions Implemented using the matrix strategy and multiple qt versions --- .github/workflows/build-linux-cmake.yml | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index f7d5b7a..2268508 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -5,6 +5,10 @@ on: [push, pull_request] jobs: build: + strategy: + matrix: + qt_version: [5.11, 5.12, 5.13, 5.14] + runs-on: ubuntu-latest steps: @@ -13,7 +17,7 @@ jobs: - name: Install Qt uses: jurplel/install-qt-action@v2.2.1 with: - version: 5.12.6 + version: ${{ matrix.qt_version }} - name: cmake run: cmake . @@ -22,25 +26,13 @@ jobs: run: make - name: Build example - basic (cmake) - run: cmake . - working-directory: examples/basic/ - - - name: Build example - basic (make) - run: make + run: cmake . && make working-directory: examples/basic/ - name: Build example - calculator (cmake) - run: cmake . - working-directory: examples/calculator/ - - - name: Build example - calculator (make) - run: make + run: cmake . && make working-directory: examples/calculator/ - name: Build example - sending_arguments (cmake) - run: cmake . - working-directory: examples/sending_arguments/ - - - name: Build example - sending_arguments (make) - run: make + run: cmake . && make working-directory: examples/sending_arguments/ -- cgit v1.2.1 From a14320382ce3c3a8a0fafa31a8b627a70f09b21e Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:38:52 +0000 Subject: GitHub Actions Exact Qt version specificatoin --- .github/workflows/build-linux-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index 2268508..e78ae65 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: - qt_version: [5.11, 5.12, 5.13, 5.14] + qt_version: [5.11.3, 5.12.6, 5.14.0] runs-on: ubuntu-latest -- cgit v1.2.1 From 0d07dd387a248bfe14b7b6811c1f62a3ee9dac99 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:43:13 +0000 Subject: GitHub Actions Multiple platforms support ubuntu-latest, windows-latest, macos-latest --- .github/workflows/build-linux-cmake.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index e78ae65..4913947 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -8,8 +8,9 @@ jobs: strategy: matrix: qt_version: [5.11.3, 5.12.6, 5.14.0] + platform: [ubuntu-latest, windows-latest, macos-latest] - runs-on: ubuntu-latest + runs-on: ${{ matrix.platform }} steps: - uses: actions/checkout@v2 -- cgit v1.2.1 From e7e31208af8a09a6134988d3f7cbedbcf76e1dda Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 10:58:16 +0000 Subject: GitHub Actions - Testing without Windows --- .github/workflows/build-linux-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml index 4913947..496a24c 100644 --- a/.github/workflows/build-linux-cmake.yml +++ b/.github/workflows/build-linux-cmake.yml @@ -8,7 +8,7 @@ jobs: strategy: matrix: qt_version: [5.11.3, 5.12.6, 5.14.0] - platform: [ubuntu-latest, windows-latest, macos-latest] + platform: [ubuntu-latest, macos-latest] runs-on: ${{ matrix.platform }} -- cgit v1.2.1 From 5222c01951a8b09a49e53569b5dadd15c6294c3b Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 11:01:08 +0000 Subject: Renamed GitHub Action to Build CMake As it now builds for multiple latforms --- .github/workflows/build-cmake.yml | 39 +++++++++++++++++++++++++++++++++ .github/workflows/build-linux-cmake.yml | 39 --------------------------------- 2 files changed, 39 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/build-cmake.yml delete mode 100644 .github/workflows/build-linux-cmake.yml diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml new file mode 100644 index 0000000..496a24c --- /dev/null +++ b/.github/workflows/build-cmake.yml @@ -0,0 +1,39 @@ +name: C/C++ CI + +on: [push, pull_request] + +jobs: + build: + + strategy: + matrix: + qt_version: [5.11.3, 5.12.6, 5.14.0] + platform: [ubuntu-latest, macos-latest] + + runs-on: ${{ matrix.platform }} + + steps: + - uses: actions/checkout@v2 + + - name: Install Qt + uses: jurplel/install-qt-action@v2.2.1 + with: + version: ${{ matrix.qt_version }} + + - name: cmake + run: cmake . + + - name: make + run: make + + - name: Build example - basic (cmake) + run: cmake . && make + working-directory: examples/basic/ + + - name: Build example - calculator (cmake) + run: cmake . && make + working-directory: examples/calculator/ + + - name: Build example - sending_arguments (cmake) + run: cmake . && make + working-directory: examples/sending_arguments/ diff --git a/.github/workflows/build-linux-cmake.yml b/.github/workflows/build-linux-cmake.yml deleted file mode 100644 index 496a24c..0000000 --- a/.github/workflows/build-linux-cmake.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: C/C++ CI - -on: [push, pull_request] - -jobs: - build: - - strategy: - matrix: - qt_version: [5.11.3, 5.12.6, 5.14.0] - platform: [ubuntu-latest, macos-latest] - - runs-on: ${{ matrix.platform }} - - steps: - - uses: actions/checkout@v2 - - - name: Install Qt - uses: jurplel/install-qt-action@v2.2.1 - with: - version: ${{ matrix.qt_version }} - - - name: cmake - run: cmake . - - - name: make - run: make - - - name: Build example - basic (cmake) - run: cmake . && make - working-directory: examples/basic/ - - - name: Build example - calculator (cmake) - run: cmake . && make - working-directory: examples/calculator/ - - - name: Build example - sending_arguments (cmake) - run: cmake . && make - working-directory: examples/sending_arguments/ -- cgit v1.2.1 From e70a0e7e3d00c958513e3c2d6b33525973f273ff Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 11:07:03 +0000 Subject: GitHub Actions alternative cmake command --- .github/workflows/build-cmake.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 496a24c..374fd42 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -21,19 +21,19 @@ jobs: version: ${{ matrix.qt_version }} - name: cmake - run: cmake . + run: cmake --build . - name: make run: make - name: Build example - basic (cmake) - run: cmake . && make + run: cmake --build . && make working-directory: examples/basic/ - name: Build example - calculator (cmake) - run: cmake . && make + run: cmake --build . && make working-directory: examples/calculator/ - name: Build example - sending_arguments (cmake) - run: cmake . && make + run: cmake --build . && make working-directory: examples/sending_arguments/ -- cgit v1.2.1 From b25e62409be20071a4c9d1462bf0a12d977e9c07 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:02:37 +0000 Subject: GitHub Actions Alternative build command --- .github/workflows/build-cmake.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 374fd42..9df0211 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -21,19 +21,19 @@ jobs: version: ${{ matrix.qt_version }} - name: cmake - run: cmake --build . + run: cmake . - - name: make - run: make + - name: cmake build + run: cmake --build . - name: Build example - basic (cmake) - run: cmake --build . && make + run: cmake . && make working-directory: examples/basic/ - name: Build example - calculator (cmake) - run: cmake --build . && make + run: cmake . && make working-directory: examples/calculator/ - name: Build example - sending_arguments (cmake) - run: cmake --build . && make + run: cmake . && make working-directory: examples/sending_arguments/ -- cgit v1.2.1 From bb24abdf1df75528497fb013bbb720223fbd5e02 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:13:35 +0000 Subject: GitHub Actions - Applied same changes throughout the script --- .github/workflows/build-cmake.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 9df0211..8f47d10 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -27,13 +27,13 @@ jobs: run: cmake --build . - name: Build example - basic (cmake) - run: cmake . && make + run: cmake . && cmake --build . working-directory: examples/basic/ - name: Build example - calculator (cmake) - run: cmake . && make + run: cmake . && cmake --build . working-directory: examples/calculator/ - name: Build example - sending_arguments (cmake) - run: cmake . && make + run: cmake . && cmake --build . working-directory: examples/sending_arguments/ -- cgit v1.2.1 From 6aec26e266d1a6de891523d17e6ece4bfc056f84 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:14:35 +0000 Subject: GitHub Actions Added windows-latest platform --- .github/workflows/build-cmake.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 8f47d10..1dbd3d7 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -1,4 +1,4 @@ -name: C/C++ CI +name: CI: Build Test on: [push, pull_request] @@ -8,7 +8,7 @@ jobs: strategy: matrix: qt_version: [5.11.3, 5.12.6, 5.14.0] - platform: [ubuntu-latest, macos-latest] + platform: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.platform }} -- cgit v1.2.1 From 767645c80ffb7ad3b1cea957d7d86f907777de74 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:15:33 +0000 Subject: GitHub Actions: Fixed typo in the yml --- .github/workflows/build-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 1dbd3d7..489ba36 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -1,4 +1,4 @@ -name: CI: Build Test +name: "CI: Build Test" on: [push, pull_request] -- cgit v1.2.1 From a7a42d5ae4beea5e8426825f30c2502daf0922c3 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:31:23 +0000 Subject: GitHub Actions syntax improvments for Windows support --- .github/workflows/build-cmake.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index 489ba36..c5cebf5 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: - qt_version: [5.11.3, 5.12.6, 5.14.0] + qt_version: [4.8.7, 5.9.8, 5.12.6, 5.13.2, 5.14.0] platform: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.platform }} @@ -27,13 +27,19 @@ jobs: run: cmake --build . - name: Build example - basic (cmake) - run: cmake . && cmake --build . working-directory: examples/basic/ + run: | + cmake . + cmake --build . - name: Build example - calculator (cmake) - run: cmake . && cmake --build . working-directory: examples/calculator/ + run: | + cmake . + cmake --build . - name: Build example - sending_arguments (cmake) - run: cmake . && cmake --build . working-directory: examples/sending_arguments/ + run: | + cmake . + cmake --build . -- cgit v1.2.1 From 062dc014ce5f7d0dab965e9576f3236e17c47246 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:34:42 +0000 Subject: GitHub Actions dropped Qt v4.8.7 This library never intended to support Qt v4.x.x anyway --- .github/workflows/build-cmake.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml index c5cebf5..d1a6419 100644 --- a/.github/workflows/build-cmake.yml +++ b/.github/workflows/build-cmake.yml @@ -7,7 +7,7 @@ jobs: strategy: matrix: - qt_version: [4.8.7, 5.9.8, 5.12.6, 5.13.2, 5.14.0] + qt_version: [5.9.8, 5.12.6, 5.13.2, 5.14.0] platform: [ubuntu-latest, windows-latest, macos-latest] runs-on: ${{ matrix.platform }} -- cgit v1.2.1 From 69873cba970203a0d0902492d565caa6b0aef0a5 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Fri, 3 Jan 2020 17:49:52 +0000 Subject: Update CHANGELOG.md --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9efd3fd..45c197e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ __3.0.18__ * Fallback to standard QApplication class on iOS and Android systems where the library is not supported. + +* Added Build CI tests to verify the library builds successfully on Linux, Windows and MacOS across multiple Qt versions. + + _Anton Filimonov_ __3.0.17__ ---------- -- cgit v1.2.1