-
-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Re-add support for Qt Creator 15.0.1 #130
Open
p12tic
wants to merge
1
commit into
Palm1r:main
Choose a base branch
from
p12tic:qtcreator-16
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,8 +13,6 @@ on: | |
env: | ||
PLUGIN_NAME: QodeAssist | ||
QT_VERSION: 6.8.2 | ||
QT_CREATOR_VERSION: 16.0.0 | ||
QT_CREATOR_VERSION_INTERNAL: 16.0.0 | ||
MACOS_DEPLOYMENT_TARGET: "11.0" | ||
CMAKE_VERSION: "3.29.6" | ||
NINJA_VERSION: "1.12.1" | ||
|
@@ -47,6 +45,17 @@ jobs: | |
platform: mac_x64, | ||
cc: "clang", cxx: "clang++" | ||
} | ||
qt_creator: | ||
- { | ||
version: "15.0.1", | ||
version_internal: "15.0.1", | ||
latest: false | ||
} | ||
- { | ||
version: "16.0.0", | ||
version_internal: "16.0.0", | ||
latest: true | ||
} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -176,7 +185,7 @@ jobs: | |
- name: Download Qt Creator | ||
uses: qt-creator/[email protected] | ||
with: | ||
version: ${{ env.QT_CREATOR_VERSION }} | ||
version: ${{ matrix.qt_creator.version }} | ||
unzip-to: 'qtcreator' | ||
|
||
- name: Extract Qt Creator | ||
|
@@ -223,7 +232,7 @@ jobs: | |
COMMAND python | ||
-u | ||
"${{ steps.qt_creator.outputs.qtc_dir }}/${build_plugin_py}" | ||
--name "$ENV{PLUGIN_NAME}-$ENV{QT_CREATOR_VERSION}-${{ matrix.config.artifact }}" | ||
--name "$ENV{PLUGIN_NAME}-${{ matrix.qt_creator.version }} -${{ matrix.config.artifact }}" | ||
--src . | ||
--build build | ||
--qt-path "${{ steps.qt.outputs.qt_dir }}" | ||
|
@@ -241,12 +250,12 @@ jobs: | |
- name: Upload | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
path: ./${{ env.PLUGIN_NAME }}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z | ||
name: ${{ env.PLUGIN_NAME}}-${{ env.QT_CREATOR_VERSION }}-${{ matrix.config.artifact }}.7z | ||
path: ./${{ env.PLUGIN_NAME }}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z | ||
name: ${{ env.PLUGIN_NAME}}-${{ matrix.qt_creator.version }}-${{ matrix.config.artifact }}.7z | ||
|
||
# The json is the same for all platforms, but we need to save one | ||
- name: Upload plugin json | ||
if: startsWith(matrix.config.os, 'ubuntu') | ||
if: startsWith(matrix.config.os, 'ubuntu') && matrix.config.latest | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ env.PLUGIN_NAME }}-origin-json | ||
|
@@ -286,7 +295,7 @@ jobs: | |
QT_TOKEN: ${{ secrets.TOKEN }} | ||
API_URL: ${{ secrets.API_URL }} | ||
run: | | ||
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 }} | ||
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 }} | ||
|
||
- name: Delete previous json artifacts | ||
uses: geekyeggo/delete-artifact@v5 | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure about support old version, maybe are leave only current for now and in future add new like beta?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not support older version as well? In our codebase the difference is 10 lines, it's not likely to raise any issues.
It's problematic to force users to upgrade to newest versions of Qt Creator because other third-party extensions may not upgrade as quickly. Also, new Qt Creator versions may contain bugs that break workflows and thus aren't usable. I've been burned by these multiple times. Both of these are barriers to use QodeAssist.
I would say that it makes sense to support all releases, especially since this PR has already done the work. If we actually see maintenance overhead, such as bugs that are specific to single version, then it makes sense to re-evaluate supporting fewer versions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In that case, we probably need to take the Qt version as part of it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked, yes, idea is good but it ieads more changes, for artifacts name, for check and download new version of plugin and plugins.json(indeed I don't know reason of this file like a collect data of plugins) and for usual PR we don't need to check all versions of QtC, only current I think. So lets do it later by another PR and just update now to new QtC version, because we don't have new features for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this doesn't matter because each build uses very little resources. It finishes in only couple of minutes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed with the rest.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one already works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not exactly, if we add new multiply versions, which version will be download, plus Qt version, QtCreator 15 based on 6.8.1