jurplel / install-qt-action

Install Qt on your Github Actions workflows with just one simple action
MIT License
455 stars 78 forks source link

Problems installing Qt 6.5 on GH runners #187

Closed ghutchis closed 1 year ago

ghutchis commented 1 year ago

I've been using the action successfully on Qt 5.x versions on GH action runners successfully.

We're trying to add some Qt6 compiles, and for example on Mac I'm getting this:

bash-3.2$ aqt list-qt mac desktop
6.5.0

Okay, it knows about 6.5.0, although strangely on the runner it doesn't know about other versions?

aqt install-qt mac desktop 6.5.*
aqtinstall(aqt) v2.1.0 on Python 3.11.3 [CPython Clang 13.0.0 (clang-1300.0.29.30)]
Resolved spec '6.5.*' to 6.5.0
Specified Qt version is unknown: 6.5.0.
Failed to locate XML data for Qt version '6.5.0'.

This obviously isn't a bug with your action, but maybe you have some suggestions?

ddalcino commented 1 year ago

That looks like it could be a bug in aqtinstall. You are using a version of aqtinstall that's really too old to install 6.5.0 properly, in many situations. I would suggest that you specify aqtversion: '==3.1.*' in your .yml file, and v3 of this action in case you are affected by #176. If you're still having trouble, it may be worthwhile to open an issue at https://github.com/miurahr/aqtinstall/issues .

ghutchis commented 1 year ago

Great, thanks. I'll give the aqtversion: '==3.1.*' a try now. (I'm already using v3 of the action)

It may also be a transient issue - sometimes the GH runners seem to have trouble hitting the network.

ghutchis commented 1 year ago

That was exactly the problem - using a newer aqtversion worked.