svn commit: r1933912 - apr/apr/trunk/.github/workflows

[email protected] Thu, 07 May 2026 17:24:30 -0000
Newsgroups gmane.comp.apache.apr.cvs
Message-ID <177817467060.4062601.892759296635691919@svn03-he-fi>
Author: ivan
Date: Thu May  7 17:24:30 2026
New Revision: 1933912

Log:
* .github/workflows/windows.yml: Attempt to fix Window build on GitHub Actions.

Modified:
   apr/apr/trunk/.github/workflows/windows.yml

Modified: apr/apr/trunk/.github/workflows/windows.yml
==============================================================================
--- apr/apr/trunk/.github/workflows/windows.yml	Thu May  7 16:37:59 2026	(r1933911)
+++ apr/apr/trunk/.github/workflows/windows.yml	Thu May  7 17:24:30 2026	(r1933912)
@@ -130,8 +130,8 @@ jobs:
     - name: Prepare Environment
       shell: pwsh
       run: |
-        $root = "C:\Program Files\Microsoft Visual Studio\2022\Enterprise"
-        Import-Module "$root\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
+        $root = &(Join-Path ${env:ProgramFiles(x86)} "\Microsoft Visual Studio\Installer\vswhere.exe") -property installationpath -latest
+        Import-Module (Join-Path $root "Common7\Tools\Microsoft.VisualStudio.DevShell.dll")
         $OldEnv = ls env:
         Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ matrix.arch }}"
         $NewEnv = ls env: