Skip to content

Commit b06d8b7

Browse files
committed
vswhere
Signed-off-by: Anush008 <anushshetty90@gmail.com>
1 parent 6ddcd82 commit b06d8b7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/CI.yml

+6
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,12 @@ jobs:
4242
runs-on: '${{ matrix.settings.host }}'
4343
steps:
4444
- uses: actions/checkout@v4
45+
- name: Print Visual Studio version
46+
run: |
47+
# Use vswhere to locate the Visual Studio installation and print the version
48+
& "C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -format json | ConvertFrom-Json | Select-Object -ExpandProperty catalog | Select-Object -ExpandProperty productDisplayVersion
49+
if: matrix.settings.host == 'windows-latest'
50+
shell: cmd
4551
- name: Restore Builds
4652
id: cache-build-restore
4753
uses: actions/cache/restore@v4

0 commit comments

Comments
 (0)