-
-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci): bump target qt versions: 6.5.x, 6.6.x, 6.7.x and 6.8.0 (#822)
* chore(ci): bump target qt versions Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): use install-qt subcommand - Drop backward compat check Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): wip Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): wip Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): fix qmake query checks Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): fix mingw targets Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): add target 6.8.0 and drop use of python3.9 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): add expectation for Qt 6.8 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): drop tox test from install-qt check Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): fix expectation for windows/android qt 6.6 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): wip Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): wip Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): add taget Qt 6.7.3 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): bump actions/setup-python@v5 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): azure-pipelines: drop test target Qt5 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): azure-pipelines: update triggers Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): azure-pipelines: disable Linux_ARM64 Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): azure-pipelines: replace list with list-qt Signed-off-by: Hiroshi Miura <[email protected]> * chore(ci): azure-pipelines: no build check if list-qt Signed-off-by: Hiroshi Miura <[email protected]> --------- Signed-off-by: Hiroshi Miura <[email protected]>
- Loading branch information
Showing
11 changed files
with
126 additions
and
313 deletions.
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
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
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
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
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 |
---|---|---|
|
@@ -15,35 +15,31 @@ jobs: | |
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest] | ||
py: ["3.9", "3.12"] | ||
qtver: [5.9.9, 6.1.0] | ||
py: ["3.12"] | ||
qtver: [6.5.3, 6.6.3] | ||
artifact: [standard] | ||
include: | ||
- os: windows-latest | ||
py: "3.10" | ||
qtver: 6.1.0 | ||
py: "3.12" | ||
qtver: 6.6.3 | ||
artifact: binary | ||
- os: ubuntu-20.04 | ||
py: "3.10" | ||
qtver: 6.1.0 | ||
- os: windows-latest | ||
py: "3.12" | ||
qtver: 6.7.3 | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
pzhlkj6612
Contributor
|
||
artifact: standard | ||
exclude: | ||
- os: ubuntu-latest | ||
py: "3.10" | ||
qtver: 6.1.0 | ||
py: "3.12" | ||
qtver: 6.8.0 | ||
artifact: standard | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 20 | ||
fetch-tags: true | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.py }} | ||
- name: Run pytest | ||
run: | | ||
python -m pip install tox-gh-actions build | ||
tox | ||
- name: Build and install | ||
if: matrix.artifact == 'standard' | ||
run: | | ||
|
@@ -88,24 +84,22 @@ jobs: | |
bin_path = str(github_workspace / "dist" / "aqt.exe") | ||
else: | ||
bin_path = (github_workspace / "dist" / "aqt").as_posix() | ||
prefix = [bin_path, "install"] | ||
prefix = [bin_path, "install-qt"] | ||
else: | ||
prefix = ["python", "-m", "aqt", "install"] | ||
prefix = ["python", "-m", "aqt", "install-qt"] | ||
command_line = [] | ||
command_line.extend(prefix) | ||
if platform == "windows-latest": | ||
if qtver.startswith('5.15'): | ||
args = [qtver, "windows", "desktop", "win64_msvc2019_64"] | ||
elif qtver.startswith('5.14'): | ||
args = [qtver, "windows", "desktop", "win64_msvc2017_64"] | ||
elif qtver.startswith('6'): | ||
args = [qtver, "windows", "desktop", "win64_mingw81"] | ||
if qtver.startswith('6.6'): | ||
args = ["windows", "desktop", qtver, "win64_mingw"] | ||
else: | ||
args = [qtver, "windows", "desktop", "win64_msvc2015_64"] | ||
args = ["windows", "desktop", qtver, "win64_msvc2019_64"] | ||
elif platform == "macOS-latest": | ||
args = [qtver, "mac", "desktop", "clang_64"] | ||
args = ["mac", "desktop", qtver, "clang_64"] | ||
elif qtver.startswith('6.8'): | ||
args = ["linux", "desktop", qtver, "linux_gcc_64"] | ||
else: | ||
args = [qtver, "linux", "desktop", "gcc_64"] | ||
args = ["linux", "desktop", qtver, "gcc_64"] | ||
command_line.extend(args) | ||
command_line.extend(["--archives", "qtbase", "icu", "qt"]) | ||
env["AQT_CONFIG"] = (github_workspace / "ci" / "settings.ini").as_posix() | ||
|
@@ -116,17 +110,17 @@ jobs: | |
except subprocess.CalledProcessError as cpe: | ||
exit(cpe.returncode) | ||
assert res.returncode == 0 | ||
if qtver.startswith('6'): | ||
if qtver.startswith('6.6'): | ||
command_line6 = [] | ||
command_line6.extend(prefix) | ||
if platform.startswith("ubuntu"): | ||
command_line6.extend([qtver, "linux", "android", "android_armv7"]) | ||
command_line6.extend(["linux", "android", qtver, "android_armv7"]) | ||
timeout = 360 | ||
elif platform.startswith("macOS"): | ||
command_line6.extend([qtver, "mac", "ios", "ios"]) | ||
command_line6.extend(["mac", "ios", qtver, "ios"]) | ||
timeout = 360 | ||
else: | ||
command_line6.extend([qtver, "windows", "android", "android_armv7"]) | ||
command_line6.extend(["windows", "android", qtver, "android_armv7"]) | ||
timeout = 360 | ||
print("Execute: {}".format(command_line6)) | ||
try: | ||
|
@@ -145,14 +139,10 @@ jobs: | |
platform = "${{ matrix.os }}" | ||
qtver = "${{ matrix.qtver }}" | ||
if platform == "windows-latest": | ||
if qtver.startswith('5.15'): | ||
arch_dir = 'msvc2019_64' | ||
elif qtver.startswith('5.14'): | ||
arch_dir = 'msvc2017_64' | ||
elif qtver.startswith('6'): | ||
arch_dir = 'mingw81_64' | ||
if qtver.startswith('6.6'): | ||
arch_dir = 'mingw_64' | ||
else: | ||
arch_dir = 'msvc2015_64' | ||
arch_dir = 'msvc2019_64' | ||
elif platform == "macOS-latest": | ||
arch_dir = 'clang_64' | ||
else: | ||
|
@@ -161,29 +151,35 @@ jobs: | |
res = run([f"{qtver}/{arch_dir}/bin/qmake", "-query"], timeout=15, check=True, stdout=PIPE) | ||
except CalledProcessError as cpe: | ||
exit(cpe.returncode) | ||
if res.returncode == 0: | ||
qt_prefix_path = pathlib.Path.cwd() / qtver / arch_dir | ||
assert res.returncode == 0 | ||
print('Check prefix path qmake recognized...') | ||
qt_prefix_path = pathlib.Path.cwd() / qtver / arch_dir | ||
for line in res.stdout.splitlines(): | ||
if line.startswith(b'QT_INSTALL_PREFIX'): | ||
result = line[18:].decode('UTF-8') | ||
assert qt_prefix_path.samefile(result) | ||
print('QT_INSTALL_PREFIX {}\nExpected path {}'.format(result, qt_prefix_path)) | ||
if qtver.startswith('6.6'): | ||
print('Check prefix path by android/ios qmake recognized...') | ||
if platform == "windows-latest": | ||
target_dir = 'android_armv7' | ||
qmake = os.path.join(qtver, 'android_armv7', 'bin', 'qmake.bat') | ||
elif platform == "macOS-latest": | ||
target_dir = 'ios' | ||
qmake = os.path.join(qtver, 'ios', 'bin', 'qmake') | ||
else: | ||
target_dir = 'android_armv7' | ||
qmake = os.path.join(qtver, 'android_armv7', 'bin', 'qmake') | ||
try: | ||
res = run([qmake, "-query"], timeout=15, check=True, stdout=PIPE) | ||
except CalledProcessError as cpe: | ||
exit(cpe.returncode) | ||
assert res.returncode == 0 | ||
expected_path = pathlib.Path.cwd() / qtver / target_dir | ||
for line in res.stdout.splitlines(): | ||
if line.startswith(b'QT_INSTALL_PREFIX'): | ||
result = line[18:].decode('UTF-8') | ||
assert qt_prefix_path.samefile(result) | ||
print('PREFIX {}'.format(result)) | ||
if qtver.startswith('6'): | ||
if platform == "windows-latest" and qtver.startswith('6'): | ||
qmake = os.path.join(qtver, 'android_armv7', 'bin', 'qmake.bat') | ||
elif platform == "macOS-latest" and qtver.startswith('6'): | ||
qmake = os.path.join(qtver, 'ios', 'bin', 'qmake') | ||
else: | ||
qmake = os.path.join(qtver, 'android_armv7', 'bin', 'qmake') | ||
try: | ||
res = run([qmake, "-query"], timeout=15, check=True, stdout=PIPE) | ||
except CalledProcessError as cpe: | ||
exit(cpe.returncode) | ||
assert res.returncode == 0 | ||
for line in res.stdout.splitlines(): | ||
if line.startswith(b'QT_INSTALL_PREFIX'): | ||
result = line[18:].decode('UTF-8') | ||
print('PREFIX {}'.format(result)) | ||
print('QT_INATALL_PREFIX {}\nExpected path {}'.format(result, expected_path)) | ||
shell: python | ||
working-directory: ${{ github.workspace }} | ||
- uses: actions/upload-artifact@v4 | ||
|
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
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
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
Oops, something went wrong.
Why it isn't QT 6.8 for Windows.