@@ -2,43 +2,63 @@ name: Build for Windows
2
2
3
3
on :
4
4
push :
5
- branches : [ master, ci/windows ]
5
+ branches : [ master ]
6
6
pull_request :
7
- branches : [ master, ci/windows ]
7
+ branches : [ master ]
8
8
release :
9
9
types : [published]
10
10
11
11
jobs :
12
12
build :
13
- name : " Build: ${{ matrix.arch }}"
13
+ name : " Build: Qt ${{ matrix.qt }} ${{ matrix.arch }}"
14
14
runs-on : windows-2022
15
15
strategy :
16
16
fail-fast : false
17
17
matrix :
18
- arch :
19
- - win32
20
- - win64
18
+ include :
19
+ - qt : ' 5.15.2'
20
+ qtmaj : ' 5'
21
+ arch : ' win32'
22
+ - qt : ' 5.15.2'
23
+ qtmaj : ' 5'
24
+ arch : ' win64'
25
+ - qt : ' 6.4.1'
26
+ qtmaj : ' 6'
27
+ arch : ' win64'
21
28
22
29
steps :
23
30
- name : Checkout Git Repo
24
31
uses : actions/checkout@v3
25
32
with :
26
33
submodules : ' recursive'
27
34
28
- - name : Install Qt
35
+ - name : " Install Qt ${{ matrix.qt }} "
29
36
uses : jurplel/install-qt-action@43ec12788e42f375acfcb2cec059edfb9572fbaa # v3
37
+ if : matrix.qtmaj == '5'
30
38
with :
31
- version : ' 5.15.2 '
39
+ version : ' ${{ matrix.qt }} '
32
40
host : ' windows'
33
41
target : ' desktop'
34
42
arch : ' ${{ matrix.arch }}_mingw81'
35
43
tools : ' tools_mingw,qt.tools.${{ matrix.arch }}_mingw810'
36
44
cache : true
37
45
46
+ - name : " Install Qt ${{ matrix.qt }}"
47
+ uses : jurplel/install-qt-action@43ec12788e42f375acfcb2cec059edfb9572fbaa # v3
48
+ if : matrix.qtmaj != '5'
49
+ with :
50
+ version : ' ${{ matrix.qt }}'
51
+ host : ' windows'
52
+ target : ' desktop'
53
+ arch : ' ${{ matrix.arch }}_mingw'
54
+ tools : ' tools_mingw90'
55
+ cache : true
56
+
38
57
- name : Fixup PATH
39
58
run : |
40
59
echo "$env:IQTA_TOOLS/mingw810_32/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
41
60
echo "$env:IQTA_TOOLS/mingw810_64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
61
+ echo "$env:IQTA_TOOLS/mingw1120_64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
42
62
43
63
- name : Build firebird-emu
44
64
run : |
53
73
- name : Upload zip
54
74
uses : actions/upload-artifact@v3
55
75
with :
56
- name : firebird-emu-${{ matrix.arch }}
57
- # Use a wildcard to force a subfolder
58
- path : " build/*-emu/"
59
- if-no-files-found : error
76
+ name : firebird-emu-Qt${{ matrix.qtmaj }} -${{ matrix.arch }}
77
+ # Use a wildcard to force a subfolder
78
+ path : " build/*-emu/"
79
+ if-no-files-found : error
0 commit comments