jurplel / install-qt-action

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

The path is error #216

Closed x-tools-author closed 6 months ago

x-tools-author commented 7 months ago

The version is 6.5.3

      - name: Install Qt for Desktop(mingw)
        uses: jurplel/install-qt-action@v3
        with:
          target: desktop
          arch: win64_mingw
          host: windows
          dir: ${{ github.workspace }}
          modules: ${{env.QT_MODULES}}
          version: "${{env.QT_VERSION}}"

The install path is(from github workflow log):

Downloading opengl32sw...
...
Finished installation of opengl32sw-64-mesa_11_2_2-signed_sha256.7z in 3.24787450
Finished installation of qtdeclarative-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z in 13.26461490
Patching D:\a\QtSwissArmyKnife\QtSwissArmyKnife\Qt\6.5.3\mingw_64\bin\qmake.exe
Finished installation
Time elapsed: 18.68709130 second
...

I think the path should be: D:\a\QtSwissArmyKnife\QtSwissArmyKnife\Qt\6.5.3\win64_mingw\bin\qmake.exe. is win64_mingw not mingw_64

pzhlkj6612 commented 7 months ago

Hi!

I think the path should be: D:\a\QtSwissArmyKnife\QtSwissArmyKnife\Qt\6.5.3\win64_mingw\bin\qmake.exe. is win64_mingw not mingw_64

Well, this path is neither configured by this Action nor aqtinstall (the backend of this action). Please see this file: https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/qt6_653/qt.qt6.653.win64_mingw/6.5.3-0-202309260341qtbase-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z (I guess you are in China, so let's use the mirror: https://mirrors.ustc.edu.cn/qtproject/online/qtsdkrepository/windows_x86/desktop/qt6_653/qt.qt6.653.win64_mingw/6.5.3-0-202309260341qtbase-Windows-Windows_10_22H2-Mingw-Windows-Windows_10_22H2-X86_64.7z )

> "C:\Program Files\7-Zip\7z.exe" l ...\that.7z | findstr "qmake.exe"
2023-09-22 14:36:15 ....A      1755816               6.5.3\mingw_64\bin\qmake.exe

Qt guys make the file hierarchy.

x-tools-author commented 7 months ago

I got it