diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 3b1bb92..25a242b 100755 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -51,7 +51,14 @@ jobs: choco install visualstudio2022buildtools -y choco install ninja -y choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y - choco install qt --version 6.5.2 -y # Install Qt + + # Download and Install Qt on Windows + - name: Download and Install Qt (Windows) + if: matrix.os == 'windows-latest' + shell: powershell + run: | + Invoke-WebRequest -Uri https://download.qt.io/official_releases/qt/6.5/6.5.2/qt-opensource-windows-x86-64-6.5.2.exe -OutFile qt-installer.exe + Start-Process -Wait -FilePath qt-installer.exe -ArgumentList '--silent', '--platform minimal', '--no-force-installations' # Set up MSVC environment on Windows - name: Set up MSVC environment (Windows) @@ -68,7 +75,7 @@ jobs: where cl || (echo cl.exe not found in PATH && exit /b 1) # Set CMAKE_PREFIX_PATH for Qt - SET CMAKE_PREFIX_PATH="C:\Program Files\Qt\6.5.2\msvc2019_64\lib\cmake\Qt6" + SET CMAKE_PREFIX_PATH="C:\Qt\6.5.2\msvc2019_64\lib\cmake\Qt6" echo "CMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH" >> %GITHUB_ENV% # Configure CMake for all platforms