Skip to content

Commit

Permalink
github action #6
Browse files Browse the repository at this point in the history
  • Loading branch information
yousefvand committed Oct 19, 2024
1 parent 49e832e commit 44348f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ jobs:
}
$vs_vars_cmd = "$vs_path\VC\Auxiliary\Build\vcvars64.bat"
if (-not (Test-Path $vs_vars_cmd)) {
Write-Error "Error: vcvars64.bat not found!"
exit 1
}
echo "VS_VARS_CMD=$vs_vars_cmd" >> $GITHUB_ENV
Write-Host "Visual Studio environment set up successfully."
Expand All @@ -70,12 +74,7 @@ jobs:
- name: Initialize MSVC environment
if: matrix.os == 'windows-latest'
run: |
if exist "${{ env.VS_VARS_CMD }}" (
call "${{ env.VS_VARS_CMD }}"
) else (
echo "Error: vcvars64.bat not found!"
exit 1
)
call "${{ env.VS_VARS_CMD }}"
shell: cmd

# Set reusable build directory
Expand Down

0 comments on commit 44348f9

Please sign in to comment.