Skip to content

Commit

Permalink
github action #10
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent 6224b7a commit 6110d39
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,23 +54,23 @@ jobs:
-property installationPath
if (-not $vs_path) {
Write-Host "Visual Studio Build Tools not found!"
echo "Visual Studio Build Tools not found!"
exit 1
}
$vs_vars_cmd = "$vs_path\VC\Auxiliary\Build\vcvars64.bat"
Write-Host "Found vcvars64.bat at: $vs_vars_cmd"
echo "VS_VARS_CMD=$vs_vars_cmd" >> $GITHUB_ENV
echo "Found vcvars64.bat at: $vs_vars_cmd"
shell: powershell

# Initialize MSVC environment for Windows
- name: Initialize MSVC environment
if: matrix.os == 'windows-latest'
run: |
Write-Host "Using vcvars64.bat from: %VS_VARS_CMD%"
echo Using vcvars64.bat from: %VS_VARS_CMD%
if not exist "%VS_VARS_CMD%" (
echo "Error: vcvars64.bat not found!"
echo Error: vcvars64.bat not found!
exit 1
)
call "%VS_VARS_CMD%"
Expand Down

0 comments on commit 6110d39

Please sign in to comment.