This is an automated email from the ASF dual-hosted git repository.

markt-asf pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-daemon.git

commit ddceb90fdff59144fb11249287aeb365e5fe7c19
Author: VladimĂ­r Chlup <[email protected]>
AuthorDate: Tue May 19 16:39:10 2026 +0200

    Make VsDevCmd.bat execution work independently of VS version in GH Actions
---
 .github/workflows/windows.yml | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml
index b70e9d7..a759530 100644
--- a/.github/workflows/windows.yml
+++ b/.github/workflows/windows.yml
@@ -78,7 +78,9 @@ jobs:
         shell: cmd
         run: |
             echo on
-            call "C:\Program Files\Microsoft Visual 
Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
+            where /R "C:\Program Files\Microsoft Visual Studio" VsDevCmd.bat > 
vs_setup_path
+            set /p SETUP_VS=< vs_setup_path
+            call "%SETUP_VS%" -arch=${{ matrix.arch }}
             cd src/native/windows/apps/prunsrv
             echo "Building prunsrv for ${{ matrix.arch }}"
             nmake BUILD_CPU=${{ matrix.arch }}
@@ -86,7 +88,9 @@ jobs:
         shell: cmd
         run: |
             echo on
-            call "C:\Program Files\Microsoft Visual 
Studio\18\Enterprise\Common7\Tools\VsDevCmd.bat" -arch=${{ matrix.arch }}
+            set /p SETUP_VS=< vs_setup_path
+            call "%SETUP_VS%" -arch=${{ matrix.arch }}
+            del vs_setup_path
             cd src/native/windows/apps/prunmgr
             echo "Building prunmgr for ${{ matrix.arch }}"
             nmake BUILD_CPU=${{ matrix.arch }}

Reply via email to