jurplel / install-qt-action

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

Add MinGW-w64 11.2 support #151

Closed RazrFalcon closed 2 years ago

RazrFalcon commented 2 years ago

Qt 6.3 support it and this is the default version on the windows-2022 environment.

Currently,

    - uses: jurplel/install-qt-action@v2
      with:
        version: '6.3.1'
        arch: 'win64_mingw112'

fails with

Specified Qt version is unknown: 6.3.1.
Specified target combination is not valid or unknown: windows desktop win64_mingw112
Specified packages are not found while parsing XML of package information!
ddalcino commented 2 years ago

I'm pretty sure that Mingw-w64 11.2 is already supported.

A couple of things:

  1. 'win64_mingw112' is not a valid argument for the 'arch' field. (try 'win64_mingw' for that version of Qt)
  2. By default, jurplel/install-qt-action@v2 uses a really old version of aqtinstall that does not have good Qt 6 support. You may have better luck specifying aqt version 2.1 or later, or install-qt-action@v3.
  3. The documentation for aqt describes how you would install Qt using aqtinstall from a command line. These directions describe exactly how you would find out what arguments can be put in the 'arch' field. Hint: use the aqt list-qt <host> <target> --arch <version> command.
  4. If you don't want to use a CLI interface to track down what arguments are valid, you can try this web app GUI: https://ddalcino.github.io/aqt-list-server/ It will show you all the options that are available, based on what choices you have already made.
jurplel commented 2 years ago

yes, that ^

Please reopen if you need more assistance

RazrFalcon commented 2 years ago

Yes, win64_mingw fixed the issue. Thanks.