Skip to content

Commit d822f02

Browse files
author
Ivan Zhakov
committed
* .github/workflows/windows.yml: Attempt to fix Window build on GitHub Actions.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1933912 13f79535-47bb-0310-9956-ffa450edef68
1 parent 44323c0 commit d822f02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,8 @@ jobs:
130130
- name: Prepare Environment
131131
shell: pwsh
132132
run: |
133-
$root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
134-
Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
133+
$root = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -property installationpath -latest
134+
Import-Module (Join-Path $root "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
135135
$OldEnv = ls env:
136136
Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
137137
$NewEnv = ls env:

0 commit comments

Comments
 (0)