aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-cmake.yml
blob: d1a64198562a30e96ce4d3f2801cbcf5ccd76517 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: "CI: Build Test"

on: [push, pull_request]

jobs:
  build:

    strategy:
      matrix:
        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 }}

    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: cmake build
      run: cmake --build .

    - name: Build example - basic (cmake)
      working-directory: examples/basic/
      run: |
        cmake .
        cmake --build .

    - name: Build example - calculator (cmake)
      working-directory: examples/calculator/
      run: |
        cmake .
        cmake --build .

    - name: Build example - sending_arguments (cmake)
      working-directory: examples/sending_arguments/
      run: |
        cmake .
        cmake --build .