Set QT_HOST_PATH for parallel desktop installations #268
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.
Qt wants
QT_HOST_PATH
when cross-compiling with CMake (docs, and relevant code to prove it reads the environment variable), and one needs to know this path in other cases like runningwindeployqt
since it's only present in the host's installation.I also fixed a regression introduced in 7595e10, where the regex was changed from something like:
msvc[^/]*_arm64
To:
msvc*_arm64
Before,
*
applied to the preceding[^/]
, meaning to match 0 or more non-slash characters. The regression made it look for 0 or morec
characters (followed immediately by an underscore), so it wouldn't be able to matchmsvc2022_arm64
for example.You can see my commit in a test project here where I was able to rely on install-qt-action setting the environment variable instead of doing it in my PowerShell script. Examining the corresponding log from the actions run, one can see that the
QT_HOST_PATH
environment variable is already set properly prior to entering the Build step.