-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (45 loc) · 1.47 KB
/
build.yml
File metadata and controls
49 lines (45 loc) · 1.47 KB
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
46
47
48
49
name: QJsonStruct build matrix - cmake
on:
push:
jobs:
build:
strategy:
matrix:
qt_version: [6.1.0]
platform: [ubuntu-latest, macos-latest, windows-latest]
include:
- platform: windows-latest
qtarch: win64_msvc2019_64
- platform: ubuntu-latest
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- name: Checking out sources
uses: actions/checkout@master
# =========================================================================================================
- name: Cache Qt
id: cache-qt
uses: actions/cache@v1
with:
path: ../Qt
key: QtCache-${{ matrix.platform }}-${{ matrix.arch }}-${{ matrix.qt_version }}
- name: Installing Qt - ${{ matrix.arch }}
uses: jurplel/install-qt-action@v2
with:
version: ${{ matrix.qt_version }}
arch: ${{ matrix.qtarch }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
# =========================================================================================================
- name: Build
shell: bash
run: |
mkdir build
cd build
cmake .. -DBUILD_TESTING=ON -DCMAKE_BUILD_TYPE=Release
cmake --build .
- name: Run
shell: bash
run: |
cd ./build/
# Yeah nmake just ignores CMAKE_BUILD_TYPE, falling back to Debug
ctest . -VV -C Debug