aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-cmake.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-cmake.yml')
-rw-r--r--.github/workflows/build-cmake.yml39
1 files changed, 39 insertions, 0 deletions
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/