9
9
strategy :
10
10
matrix :
11
11
os : [windows-latest, ubuntu-latest]
12
- arch : [x86, x64]
13
- qt_version : [5.9.9, 5.15.2]
12
+ qt_version : [6.0.4, 6.8.0]
14
13
include :
15
14
- os : windows-latest
16
- arch : x86
17
- qt_compile_suite : win32_msvc2019
18
- - os : windows-latest
19
- arch : x64
20
- qt_compile_suite : win64_msvc2019_64
15
+ qt_compile_suite : msvc2022_64
21
16
exclude :
22
17
# We only want to test for the latest version of Qt on Windows
23
18
- os : windows-latest
24
- qt_version : 5.9.9
25
- # We only compile for the current architecture of the runner for Linux
26
- - os : ubuntu-latest
27
- arch : x86
19
+ qt_version : 6.8.0
28
20
steps :
29
21
- name : Checkout repository
30
- uses : actions/checkout@v3
22
+ uses : actions/checkout@v4
31
23
- name : Install Qt ${{ matrix.qt_version }}
32
- uses : jurplel/install-qt-action@v3
24
+ uses : jurplel/install-qt-action@v4
33
25
with :
34
26
version : ${{ matrix.qt_version }}
35
27
arch : ${{ matrix.qt_compile_suite }}
36
28
cache : true
37
29
dir : ${{ runner.temp }}/Qt
38
30
- name : Install additional dependencies
39
31
shell : bash
40
- env :
41
- ARCH : ${{ matrix.arch }}
42
32
run : |
43
33
if [ "$RUNNER_OS" == "Linux" ]; then
44
34
sudo apt-get update -qq;
45
35
sudo apt install -qq libx11-dev libqt5svg5-dev libx11-xcb-dev desktop-file-utils
46
36
elif [ "$RUNNER_OS" == "Windows" ]; then
47
- if [ "$ARCH" == "x86" ]; then
48
- echo "CMAKE_PLATFORM_ARG=-A Win32" >> $GITHUB_ENV
49
- export archParam="--forcex86"
50
- else
51
- echo "CMAKE_PLATFORM_ARG=-A x64" >> $GITHUB_ENV
52
- fi
53
- choco install -y --force $archParam openssl.light --version=1.1.1
37
+ choco install -y --force openssl.light --version=1.1.1
54
38
echo "C:\\Program Files\\OpenSSL" >> $GITHUB_PATH
55
39
else
56
40
echo "$RUNNER_OS not supported"
61
45
- name : Configure CMake
62
46
shell : bash
63
47
working-directory : ${{ runner.workspace }}/build
64
- run : cmake $GITHUB_WORKSPACE $CMAKE_PLATFORM_ARG -DCMAKE_BUILD_TYPE=Release -DCOMPILER_WARNINGS_AS_ERRORS=ON -DBUILD_WITH_TESTS=ON -DDONT_EXECUTE_INSTALLER=ON
48
+ run : cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=Release -DCOMPILER_WARNINGS_AS_ERRORS=ON -DBUILD_WITH_TESTS=ON -DDONT_EXECUTE_INSTALLER=ON
65
49
- name : Register build problem matchers
66
50
run : |
67
51
echo "::add-matcher::.github/problem-matchers/linguist.json"
@@ -116,10 +100,10 @@ jobs:
116
100
mkdir installer/cache
117
101
mv installer/$installerFile installer/cache
118
102
- name : Cache installer
119
- uses : actions/upload-artifact@v3
103
+ uses : actions/upload-artifact@v4
120
104
if : steps.check-deploy.outputs.is_deploy == 'true'
121
105
with :
122
- name : installer-${{ runner.os }}-${{ matrix.arch }}-${{ github.sha }}
106
+ name : installer-${{ runner.os }}-${{ github.sha }}
123
107
path : installer/cache/${{ steps.find_installer_file.outputs.installer_file }}
124
108
125
109
release :
@@ -129,7 +113,7 @@ jobs:
129
113
runs-on : ubuntu-latest
130
114
steps :
131
115
- name : Checkout repository
132
- uses : actions/checkout@v3
116
+ uses : actions/checkout@v4
133
117
- name : Check if this is a deployment build
134
118
id : deploy_check
135
119
shell : bash
@@ -141,16 +125,11 @@ jobs:
141
125
echo "Tag does not match: ${{ github.event.ref }}"
142
126
exit 1
143
127
fi
144
- - name : Download installer (x86)
145
- uses : actions/download-artifact@v4.1.7
146
- with :
147
- name : installer-Windows-x86-${{ github.sha }}
148
- path : installer-x86
149
128
- name : Download installer (x64)
150
- uses : actions/download-artifact@v4.1.7
129
+ uses : actions/download-artifact@v4
151
130
with :
152
131
name : installer-Windows-x64-${{ github.sha }}
153
- path : installer-x64
132
+ path : installer
154
133
- name : Create Release
155
134
uses : ncipollo/release-action@v1
156
135
with :
0 commit comments