Skip to content

Commit

Permalink
github action #22
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent 1aa3f73 commit fe1e22c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit fe1e22c

Please sign in to comment.