Skip to content

Commit

Permalink
github action #5
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent edc12cf commit 49e832e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,21 @@ jobs:
choco install ninja -y
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System' -y
# Locate Visual Studio using vswhere.exe
# Locate Visual Studio installation using vswhere.exe
$vs_path = &"C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" `
-latest -products * `
-requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 `
-property installationPath
echo "Visual Studio Path: $vs_path"
if (-not $vs_path) {
echo "Error: Visual Studio Build Tools not found!"
Write-Error "Visual Studio Build Tools not found!"
exit 1
}
echo "VS_PATH=$vs_path" >> $GITHUB_ENV
echo "VS_VARS_CMD=$vs_path\VC\Auxiliary\Build\vcvars64.bat" >> $GITHUB_ENV
$vs_vars_cmd = "$vs_path\VC\Auxiliary\Build\vcvars64.bat"
echo "VS_VARS_CMD=$vs_vars_cmd" >> $GITHUB_ENV
Write-Host "Visual Studio environment set up successfully."
shell: powershell

# Initialize MSVC environment for Windows
Expand Down

0 comments on commit 49e832e

Please sign in to comment.