Closed joshion closed 2 years ago
Hi. Please try this:
- uses: jurplel/install-qt-action@v2
with:
tools: 'tools_cmake,3.21.1,qt.tools.cmake.win64'
These information can be found in https://download.qt.io/online/qtsdkrepository/windows_x86/desktop/tools_cmake/Updates.xml .
steps:
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
...
- name: Pull source code
# This step must be the first step cause it would clean the workspace
uses: actions/checkout@v2
I have figure it out, cause the "actions/checkout@v2" would clean the workspace, so the correct it as
steps:
- name: Pull source code
# This step must be the first step cause it would clean the workspace
uses: actions/checkout@v2
- name: Install Qt
uses: jurplel/install-qt-action@v2
with:
...
The true rule need to remember: NO coding when you are full of sleepness
the "actions/checkout@v2" would clean the workspace
Well, it's true, but I think the problem behind it is that you are using the dir
parameter:
steps:
- name: Install Qt
uses: joshion/install-qt-action@v2
with:
...
dir: '${{github.workspace}}/3rdlibs'
...
The default installation destination of Qt is not in ${{github.workspace}}
, but $RUNNER_WORKSPACE
(see code or dir § README. I cannot find it in GitHub Docs, though). If there is no special purpose, you can omit that parameter, then the installed Qt will not be affected by "actions/checkout@v2".
See also "D:/a/Decade/Decade/build/CMakeFiles/CMakeOutput.log". CMake did not find one.
Could not find a package configuration file provided by "Qt5" with any of the following names:
Add the installation prefix of "Qt5" to CMAKE_PREFIX_PATH or set "Qt5_DIR"
It seems that the "tool_cmake" has not been installed, how to install it?