blob: aca3acd0138cd91534c766b222882728b8ef5561 (
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# 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-20.04-g++, ubuntu-22.04-clang, ubuntu-22.04-g++]
qt_ver: [5.12.0, 5.15.2, 6.5.*]
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-20.04-g++
os: ubuntu-20.04
env:
CXX: g++
CC: gcc
- name: ubuntu-22.04-clang
os: ubuntu-22.04
env:
CXX: clang++
CC: clang
- name: ubuntu-22.04-g++
os: ubuntu-22.04
env:
CXX: g++
CC: gcc
- name: windows-x64-vs19-qt-6.5.*
qt_ver: 6.5.*
os: windows-latest
msvc_arch: x64
qt_arch: win64_msvc2019_64
env:
CXX: cl
C: cl
- 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-6.5.*
qt_ver: 6.5.*
os: windows-latest
msvc_arch: x86
qt_arch: win32_msvc2019
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: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_ver }}
arch: ${{ matrix.qt_arch }}
cache: true
- 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 -DQT_VERSION=${{ matrix.qt_ver }} ../quacker
ninja -v
|