blob: d4c38adb05bf8bb9791e36fbd45ca0a42dbe5205 (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Continuous integration and pull request validation builds
name: CI builds
on:
push:
branches: [ master, actions_ci ]
pull_request:
branches: [ master, actions_ci ]
jobs:
job:
name: ${{ matrix.name }}-build
runs-on: ${{ matrix.os }}
env: ${{ matrix.env }}
strategy:
fail-fast: false
matrix:
name: [macos-clang, ubuntu-20.04-clang, ubuntu-18.04-g++, ubuntu-20.04-g++]
qt_ver: [5.12.0, 5.15.1]
include:
- name: macos-clang
os: macos-latest
env:
CXX: clang++
CC: clang
- name: ubuntu-20.04-clang
os: ubuntu-20.04
env:
CXX: clang++
CC: clang
- name: ubuntu-18.04-g++
os: ubuntu-18.04
env:
CXX: g++
CC: gcc
- name: ubuntu-20.04-g++
os: ubuntu-20.04
env:
CXX: g++
CC: gcc
- name: windows-x64-vs19-qt-5.15.1
qt_ver: 5.15.1
os: windows-latest
msvc_arch: x64
qt_arch: win64_msvc2019_64
env:
CXX: cl
C: cl
- name: windows-x64-vs19-qt-5.12.0
qt_ver: 5.12.0
os: windows-latest
msvc_arch: x64
qt_arch: win64_msvc2017_64
env:
CXX: cl
C: cl
- name: windows-x86-vs19-qt-5.15.1
qt_ver: 5.15.1
os: windows-latest
msvc_arch: x86
qt_arch: win32_msvc2019
env:
CXX: cl
C: cl
- name: windows-x86-vs19-qt-5.12.0
qt_ver: 5.12.0
os: windows-latest
msvc_arch: x86
qt_arch: win32_msvc2017
env:
CXX: cl
C: cl
steps:
- name: Check out sources
uses: actions/checkout@v3
- name: Get latest CMake and ninja
uses: lukka/get-cmake@latest
- name: Cache Qt
id: cache-qt
uses: actions/cache@v3
with:
path: ../Qt
key: ${{ runner.os }}-${{ matrix.qt_ver }}-${{ matrix.qt_arch }}-Qt-cache
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_ver }}
arch: ${{ matrix.qt_arch }}
cached: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Add MSVC to path
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.msvc_arch }}
- name: Generate and build
run: |
mkdir build
cd build
cmake -G Ninja ../quacker
ninja -v
|