13
13
env :
14
14
PLUGIN_NAME : QodeAssist
15
15
QT_VERSION : 6.8.2
16
- QT_CREATOR_VERSION : 16.0.0
17
- QT_CREATOR_VERSION_INTERNAL : 16.0.0
18
16
MACOS_DEPLOYMENT_TARGET : " 11.0"
19
17
CMAKE_VERSION : " 3.29.6"
20
18
NINJA_VERSION : " 1.12.1"
47
45
platform : mac_x64,
48
46
cc : " clang" , cxx: "clang++"
49
47
}
48
+ qt_creator :
49
+ - {
50
+ version : " 15.0.1" ,
51
+ version_internal : " 15.0.1" ,
52
+ latest : false
53
+ }
54
+ - {
55
+ version : " 16.0.0" ,
56
+ version_internal : " 16.0.0" ,
57
+ latest : true
58
+ }
50
59
51
60
steps :
52
61
- uses : actions/checkout@v4
@@ -176,7 +185,7 @@ jobs:
176
185
- name : Download Qt Creator
177
186
uses : qt-creator/install-dev-package@v1.2
178
187
with :
179
- version : ${{ env.QT_CREATOR_VERSION }}
188
+ version : ${{ matrix.qt_creator.version }}
180
189
unzip-to : ' qtcreator'
181
190
182
191
- name : Extract Qt Creator
@@ -223,7 +232,7 @@ jobs:
223
232
COMMAND python
224
233
-u
225
234
"${{ steps.qt_creator.outputs.qtc_dir }}/${build_plugin_py}"
226
- --name "$ENV{PLUGIN_NAME}-$ENV{QT_CREATOR_VERSION} -${{ matrix.config.artifact }}"
235
+ --name "$ENV{PLUGIN_NAME}-${{ matrix.qt_creator.version }} -${{ matrix.config.artifact }}"
227
236
--src .
228
237
--build build
229
238
--qt-path "${{ steps.qt.outputs.qt_dir }}"
@@ -241,12 +250,12 @@ jobs:
241
250
- name : Upload
242
251
uses : actions/upload-artifact@v4
243
252
with :
244
- path : ./${{ env.PLUGIN_NAME }}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z
245
- name : ${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z
253
+ path : ./${{ env.PLUGIN_NAME }}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z
254
+ name : ${{ env.PLUGIN_NAME}}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z
246
255
247
256
# The json is the same for all platforms, but we need to save one
248
257
- name : Upload plugin json
249
- if : startsWith(matrix.config.os, 'ubuntu')
258
+ if : startsWith(matrix.config.os, 'ubuntu') && matrix.config.latest
250
259
uses : actions/upload-artifact@v4
251
260
with :
252
261
name : ${{ env.PLUGIN_NAME }}-origin-json
@@ -286,7 +295,7 @@ jobs:
286
295
QT_TOKEN : ${{ secrets.TOKEN }}
287
296
API_URL : ${{ secrets.API_URL }}
288
297
run : |
289
- node .github/scripts/registerPlugin.js ${{ env.RELEASE_HTML_URL }} ${{ env.PLUGIN_NAME }} ${{ env.QT_CREATOR_VERSION }} ${{ env.QT_CREATOR_VERSION_INTERNAL }} ${{ env.QT_TOKEN }} ${{ env.API_URL }}
298
+ node .github/scripts/registerPlugin.js ${{ env.RELEASE_HTML_URL }} ${{ env.PLUGIN_NAME }} ${{ matrix.qt_creator.version }} ${{ matrix.qt_creator.version_internal }} ${{ env.QT_TOKEN }} ${{ env.API_URL }}
290
299
291
300
- name : Delete previous json artifacts
292
301
uses : geekyeggo/delete-artifact@v5
0 commit comments