Skip to content

Commit 410b152

Browse files
authored
Update vc.yml
1 parent 7bc3190 commit 410b152

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/vc.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,16 @@ jobs:
1111
- name: Check if VCToolsRedistDir exists
1212
shell: cmd
1313
run: |
14-
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64 && (
15-
echo VCToolsRedistDir is set to: %VCToolsRedistDir%
16-
) || (
14+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
15+
16+
:: Output all environment variables for debugging
17+
set
18+
19+
:: Check if the VCToolsRedistDir variable is set
20+
if not defined VCToolsRedistDir (
1721
echo Error: Environment variable VCToolsRedistDir is not set.
1822
exit /b 1
23+
) else (
24+
echo VCToolsRedistDir is set to: %VCToolsRedistDir%
1925
)
26+

0 commit comments

Comments
 (0)