From 6c53e87e96287cb79fcfd1523fb6d0323df73085 Mon Sep 17 00:00:00 2001
From: Copilot <198982749+Copilot@users.noreply.github.com>
Date: Thu, 07 May 2026 10:51:11 +0000
Subject: [PATCH] Fix Windows CI: use ilammy/msvc-dev-cmd to set up MSVC env (#643)
---
.github/workflows/build.yml | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 59c380d..72e7936 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -56,11 +56,19 @@
path: ~/.m2/repository
key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2-repository
+ - name: Setup MSVC Developer Command Prompt (x86)
+ if: runner.os == 'Windows'
+ uses: ilammy/msvc-dev-cmd@v1
+ env:
+ # Opt in to Node.js 24 for this action, which still ships on Node.js 20.
+ # See https://github.com/ilammy/msvc-dev-cmd/issues/99
+ FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
+ with:
+ arch: x86
- name: Build Windows native executables
if: runner.os == 'Windows'
shell: cmd
run: |
- call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86
cd opendj-server-legacy\src\build-tools\windows
nmake all
xcopy /Y *.exe ..\..\..\lib\
--
Gitblit v1.10.0