aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorItay Grudev <itay+github.com@grudev.com>2021-10-04 12:58:58 +0300
committerGitHub <noreply@github.com>2021-10-04 12:58:58 +0300
commit34d99d4d1742d47040a80c44f19820290da9d796 (patch)
tree5eaeab0e605fd7c0bbbbea641317496f31631ca6
parentMerge pull request #139 from mklein-de/appimage-executable-path (diff)
parentUpdate install-qt action (diff)
downloadsingleapplication-34d99d4d1742d47040a80c44f19820290da9d796.tar.xz
Merge pull request #141 from itay-grudev/refactor-ci
Refactor CI
-rw-r--r--.github/workflows/build-cmake.yml56
-rw-r--r--.github/workflows/build.yml87
2 files changed, 87 insertions, 56 deletions
diff --git a/.github/workflows/build-cmake.yml b/.github/workflows/build-cmake.yml
deleted file mode 100644
index 6344b50..0000000
--- a/.github/workflows/build-cmake.yml
+++ /dev/null
@@ -1,56 +0,0 @@
-name: "CI: Build Test"
-
-on: [push, pull_request]
-
-jobs:
- build:
-
- strategy:
- matrix:
- qt_version: [5.12.6, 5.13.2, 5.14.0, 5.15.0, 6.0.0]
- platform: [ubuntu-20.04, windows-latest, macos-latest]
- include:
- - qt_version: 6.0.0
- additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6
- - platform: ubuntu-20.04
- CXXFLAGS: -Wall -Wextra -pedantic -Werror
- - platform: macos-latest
- CXXFLAGS: -Wall -Wextra -pedantic -Werror
- - platform: windows-latest
- CXXFLAGS: /W4 /WX
-
- runs-on: ${{ matrix.platform }}
- env:
- CXXFLAGS: ${{ matrix.CXXFLAGS }}
-
- steps:
- - uses: actions/checkout@v2.3.4
-
- - name: Install Qt
- uses: jurplel/install-qt-action@v2.11.1
- with:
- version: ${{ matrix.qt_version }}
-
- - name: cmake
- run: cmake . ${{ matrix.additional_arguments }}
-
- - name: cmake build
- run: cmake --build .
-
- - name: Build example - basic (cmake)
- working-directory: examples/basic/
- run: |
- cmake . ${{ matrix.additional_arguments }}
- cmake --build .
-
- - name: Build example - calculator (cmake)
- working-directory: examples/calculator/
- run: |
- cmake . ${{ matrix.additional_arguments }}
- cmake --build .
-
- - name: Build example - sending_arguments (cmake)
- working-directory: examples/sending_arguments/
- run: |
- cmake . ${{ matrix.additional_arguments }}
- cmake --build .
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..ffc37f4
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,87 @@
+name: "CI: Build Test"
+
+on:
+ push:
+ branches-ignore:
+ - "releases/**"
+ paths-ignore:
+ - "**.md"
+
+jobs:
+ build:
+ strategy:
+ matrix:
+ qt_version: [5.12.6, 5.13.2, 5.14.0, 5.15.0, 6.0.0]
+ platform: [ubuntu-20.04, windows-latest, macos-latest]
+ include:
+ - qt_version: 6.0.0
+ additional_arguments: -D QT_DEFAULT_MAJOR_VERSION=6
+ - platform: ubuntu-20.04
+ make: make
+ CXXFLAGS: -Wall -Wextra -pedantic -Werror
+ MAKEFLAGS: -j2
+ - platform: macos-latest
+ make: make
+ CXXFLAGS: -Wall -Wextra -pedantic -Werror
+ MAKEFLAGS: -j3
+ - platform: windows-latest
+ make: nmake
+ CXXFLAGS: /W4 /WX /MP
+
+ runs-on: ${{ matrix.platform }}
+ env:
+ CXXFLAGS: ${{ matrix.CXXFLAGS }}
+ MAKEFLAGS: ${{ matrix.MAKEFLAGS }}
+
+ steps:
+ - name: Clone repo
+ uses: actions/checkout@v2.3.4
+
+ - name: Install Qt
+ uses: jurplel/install-qt-action@v2.14.0
+ with:
+ version: ${{ matrix.qt_version }}
+
+ - name: Build library with CMake
+ run: |
+ cmake . ${{ matrix.additional_arguments }}
+ cmake --build .
+
+ - name: Build basic example with CMake
+ working-directory: examples/basic/
+ run: |
+ cmake . ${{ matrix.additional_arguments }}
+ cmake --build .
+
+ - name: Build calculator example CMake
+ working-directory: examples/calculator/
+ run: |
+ cmake . ${{ matrix.additional_arguments }}
+ cmake --build .
+
+ - name: Build sending_arguments example with CMake
+ working-directory: examples/sending_arguments/
+ run: |
+ cmake . ${{ matrix.additional_arguments }}
+ cmake --build .
+
+ - name: Setup MSVC environment for QMake
+ uses: ilammy/msvc-dev-cmd@v1
+
+ - name: Build basic example with QMake
+ working-directory: examples/basic/
+ run: |
+ qmake
+ ${{ matrix.make }}
+
+ - name: Build calculator example QMake
+ working-directory: examples/calculator/
+ run: |
+ qmake
+ ${{ matrix.make }}
+
+ - name: Build sending_arguments example with QMake
+ working-directory: examples/sending_arguments/
+ run: |
+ qmake
+ ${{ matrix.make }}