-
Notifications
You must be signed in to change notification settings - Fork 248
203 lines (192 loc) · 5.73 KB
/
Copy pathci.yml
File metadata and controls
203 lines (192 loc) · 5.73 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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
on:
push:
branches:
- master
- feature/*
pull_request:
name: CI
permissions: read-all
jobs:
ubuntu:
if: true
name: Ubuntu-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
os_version: [22.04, 24.04]
qt_version: [5.15.2, 6.8.2]
shared: [ON, OFF]
uses: ./.github/workflows/reusable.yml
with:
runs_on: ubuntu-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: ${{ matrix.shared }}
ubuntu-zlibconst:
if: true
name: Ubuntu-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-zlibconst
strategy:
fail-fast: false
matrix:
os_version: [ 24.04 ]
qt_version: [ 6.8.2 ]
uses: ./.github/workflows/reusable.yml
with:
runs_on: ubuntu-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: "ON"
zlib_const: "ON"
# Qt6 with Qt5Compat but explicitly disabled QTextCodec support
ubuntu-no-qtextcodec:
if: true
name: Ubuntu-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-no-qtextcodec
strategy:
fail-fast: true
matrix:
os_version: [ 24.04 ]
qt_version: [ 6.8.2 ]
uses: ./.github/workflows/reusable.yml
with:
runs_on: ubuntu-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: "ON"
qtextcodec: 'OFF'
macos:
if: true
name: macos-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
os_version: [15, 14, 15-intel]
qt_version: [6.8.2, 5.15.2]
shared: [ON, OFF]
exclude:
- os_version: 14
qt_version: 5.15.2 #Not available due to ARM arch
- os_version: 15
qt_version: 5.15.2 #Not available due to ARM arch
uses: ./.github/workflows/reusable.yml
with:
runs_on: macos-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: ${{ matrix.shared }}
alpine:
if: true
name: "${{ matrix.qt_version }} on ${{ matrix.runner }}"
runs-on: "ubuntu-22.04"
container:
image: "${{ matrix.runner }}"
strategy:
matrix:
runner:
- "alpine:3.21"
qt_version:
- "qt5"
- "qt6"
env:
DEBIAN_FRONTEND: noninteractive
TEST_ZIP_UNZIP_LARGE: true
steps:
- name: Show OS info
run: cat /etc/os-release
- uses: actions/checkout@v6
- name: Install build tools
run: apk add --update g++ make cmake ${{ matrix.qt_version }}-qtbase-dev
- name: Install compat
if: ${{ matrix.qt_version == 'qt6' }}
run: apk add qt6-qt5compat-dev
- name: Show cmake version
run: cmake --version
- name: Run cmake
run: cmake -B build -DQUAZIP_ENABLE_TESTS=ON
- name: Build quazip
run: cd build && VERBOSE=1 make -j8
- name: Build tests
run: cd build/qztest && VERBOSE=1 make -j8
- name: Run tests
run: build/qztest/qztest
windows-x64:
if: true
name: Win-Qt-${{ matrix.qt_version }}-preset-${{ matrix.preset }}
strategy:
fail-fast: false
matrix:
preset: [ conan, vcpkg ]
qt_version: [ 5.15.2, 6.8.2 ]
uses: ./.github/workflows/reusable-win.yml
with:
runs_on: "win-x64"
arch: x64
qt_version: ${{ matrix.qt_version }}
preset: ${{ matrix.preset }}
pe_str: "x86-64"
windows-x86:
if: true
name: Win-Qt-${{ matrix.qt_version }}-preset-${{ matrix.preset }}
strategy:
fail-fast: false
matrix:
preset: [ conan_x86, vcpkg_x86 ]
qt_version: [ 5.15.2 ]
uses: ./.github/workflows/reusable-win.yml
with:
runs_on: "win-x86"
arch: x86
qt_version: ${{ matrix.qt_version }}
preset: ${{ matrix.preset }}
pe_str: "i386"
# Cross platform extraction jobs
ubuntu-ci-extract:
if: true
name: extract-Ubuntu-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
os_version: [ 24.04 ]
qt_version: [ 6.8.2 ]
shared: [ ON ]
uses: ./.github/workflows/reusable.yml
needs: [ ubuntu, macos, windows-x64, windows-x86 ]
with:
runs_on: ubuntu-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: ${{ matrix.shared }}
cross_extract: true
macos-ci-extract:
if: true
name: extract-macos-${{ matrix.os_version }}-Qt-${{ matrix.qt_version }}-shared-${{ matrix.shared }}
strategy:
fail-fast: false
matrix:
os_version: [ 15 ]
qt_version: [ 6.8.2 ]
shared: [ ON ]
uses: ./.github/workflows/reusable.yml
needs: [ ubuntu, macos, windows-x64, windows-x86 ]
with:
runs_on: macos-${{ matrix.os_version }}
os_version: ${{ matrix.os_version }}
qt_version: ${{ matrix.qt_version }}
shared: ${{ matrix.shared }}
cross_extract: true
windows-x64-ci-extract:
if: true
name: extract-Win-Qt-${{ matrix.qt_version }}-preset-${{ matrix.preset }}
strategy:
fail-fast: false
matrix:
preset: [ vcpkg ]
qt_version: [ 6.8.2 ]
uses: ./.github/workflows/reusable-win.yml
needs: [ ubuntu, macos, windows-x64, windows-x86 ]
with:
runs_on: "win-x64"
arch: x64
qt_version: ${{ matrix.qt_version }}
preset: ${{ matrix.preset }}
pe_str: "x86-64"
cross_extract: true