aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-linux-cmake.yml
blob: e78ae65828982872ee56178b479f0c4e0772f67f (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
name: C/C++ CI

on: [push, pull_request]

jobs:
  build:

    strategy:
      matrix:
        qt_version: [5.11.3, 5.12.6, 5.14.0]

    runs-on: ubuntu-latest

    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/