Skip to content

Commit ab0ef37

Browse files
committed
feat: Add support for Qt Creator 16.0.0
1 parent 0856594 commit ab0ef37

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/build_cmake.yml

+14-7
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ on:
1313
env:
1414
PLUGIN_NAME: QodeAssist
1515
QT_VERSION: 6.8.1
16-
QT_CREATOR_VERSION: 15.0.1
17-
QT_CREATOR_VERSION_INTERNAL: 15.0.1
1816
MACOS_DEPLOYMENT_TARGET: "11.0"
1917
CMAKE_VERSION: "3.29.6"
2018
NINJA_VERSION: "1.12.1"
@@ -47,6 +45,15 @@ jobs:
4745
platform: mac_x64,
4846
cc: "clang", cxx: "clang++"
4947
}
48+
qt_creator:
49+
- {
50+
version: "15.0.1",
51+
version_internal: "15.0.1"
52+
}
53+
- {
54+
version: "16.0.0",
55+
version_internal: "16.0.0"
56+
}
5057

5158
steps:
5259
- uses: actions/checkout@v4
@@ -176,7 +183,7 @@ jobs:
176183
- name: Download Qt Creator
177184
uses: qt-creator/[email protected]
178185
with:
179-
version: ${{ env.QT_CREATOR_VERSION }}
186+
version: ${{ matrix.qt_creator.version }}
180187
unzip-to: 'qtcreator'
181188

182189
- name: Extract Qt Creator
@@ -223,7 +230,7 @@ jobs:
223230
COMMAND python
224231
-u
225232
"${{ steps.qt_creator.outputs.qtc_dir }}/${build_plugin_py}"
226-
--name "$ENV{PLUGIN_NAME}-$ENV{QT_CREATOR_VERSION}-${{ matrix.config.artifact }}"
233+
--name "$ENV{PLUGIN_NAME}-${{ matrix.qt_creator.version }} -${{ matrix.config.artifact }}"
227234
--src .
228235
--build build
229236
--qt-path "${{ steps.qt.outputs.qt_dir }}"
@@ -241,8 +248,8 @@ jobs:
241248
- name: Upload
242249
uses: actions/upload-artifact@v4
243250
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
251+
path: ./${{ env.PLUGIN_NAME }}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z
252+
name: ${{ env.PLUGIN_NAME}}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z
246253

247254
# The json is the same for all platforms, but we need to save one
248255
- name: Upload plugin json
@@ -286,7 +293,7 @@ jobs:
286293
QT_TOKEN: ${{ secrets.TOKEN }}
287294
API_URL: ${{ secrets.API_URL }}
288295
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 }}
296+
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 }}
290297
291298
- name: Delete previous json artifacts
292299
uses: geekyeggo/delete-artifact@v5

0 commit comments

Comments
 (0)