Author: dsahlberg
Date: Sat May  9 10:47:13 2026
New Revision: 1933981

Log:
Borrow the Prepare Environment (Windows) step from Subversion to try to
resolve CMake errors "Could not find any instance of Visual Studio".

* .github/workflows/windows-cmake.yml
  (#Prepare Environment (Windows)) New step

Modified:
   serf/trunk/.github/workflows/windows-cmake.yml

Modified: serf/trunk/.github/workflows/windows-cmake.yml
==============================================================================
--- serf/trunk/.github/workflows/windows-cmake.yml      Sat May  9 10:36:38 
2026        (r1933980)
+++ serf/trunk/.github/workflows/windows-cmake.yml      Sat May  9 10:47:13 
2026        (r1933981)
@@ -32,6 +32,15 @@ jobs:
       VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
 
     steps:
+      - name: Prepare Environment (Windows)
+        if: runner.os == 'Windows'
+        run: |
+          $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")
+          Enter-VsDevShell -VsInstallPath $root -DevCmdArguments "-arch=${{ 
matrix.arch }}"
+
+          ls env: | foreach { "$($_.Name)=$($_.Value)" >> $env:GITHUB_ENV }
+
       - name: Export GitHub Actions cache environment variables
         uses: actions/github-script@v7
         with:

Reply via email to