Skip to content

Commit c7a6c4d

Browse files
authored
Create vc.yml
1 parent 9cb2616 commit c7a6c4d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/vc.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test VCToolsRedistDir
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
7+
jobs:
8+
test:
9+
runs-on: windows-2019
10+
steps:
11+
- name: Check if VCToolsRedistDir exists
12+
shell: cmd
13+
run: |
14+
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
15+
:: Print all environment variables for debugging
16+
set
17+
:: Check if VCToolsRedistDir is set
18+
if not defined VCToolsRedistDir (
19+
echo Error: Environment variable VCToolsRedistDir is not set.
20+
exit /b 1
21+
)
22+
echo VCToolsRedistDir is set to %VCToolsRedistDir%

0 commit comments

Comments
 (0)