Remove actions/cache because jurplel/install-qt-action@v3 can do that by itself now
Add ilammy/msvc-dev-cmd to set environment variables needed for the windows Build step. That action uses vswhere to find the vcvars64.bat file that sets the environment variables and runs it. This replaces calling vcvars64.bat manually.
The main problem was that Visual Studio 2019 was hardcoded in the GitHub Actions workflow, and the current windows-latest (at the time of writing windows-2022, Source) does only have Visual Studio 2022 installed.
This PR does the following:
actions/cache
becausejurplel/install-qt-action@v3
can do that by itself nowilammy/msvc-dev-cmd
to set environment variables needed for the windows Build step. That action usesvswhere
to find thevcvars64.bat
file that sets the environment variables and runs it. This replaces callingvcvars64.bat
manually.The main problem was that Visual Studio 2019 was hardcoded in the GitHub Actions workflow, and the current
windows-latest
(at the time of writingwindows-2022
, Source) does only have Visual Studio 2022 installed.