Skip to content

Commit d5e890a

Browse files
committed
Add step to setup Visual Studio environment variables in cmake.yaml
1 parent 7f2131c commit d5e890a

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/cmake.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
2121
vcpkgTriplet: '${{ matrix.platform }}-windows'
2222

23+
- name: Setup Visual Studio Environment Variables
24+
shell: pwsh
25+
run: |
26+
$vsPath = & "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -products * -property installationPath
27+
echo "VSINSTALLDIR=$vsPath" | Out-File -FilePath $env:GITHUB_ENV -Append
28+
2329
- name: Configure CMake
2430
shell: pwsh
2531
run: |

0 commit comments

Comments
 (0)