From 8c23446718bd7e2c7291e8de28f1b7f7d9257a98 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 7 May 2026 07:55:43 +0000 Subject: [PATCH 1/2] Use ilammy/msvc-dev-cmd to set up MSVC env on Windows Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenDJ/sessions/1751174e-243a-4016-bfc8-f45c7e4b066a Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com> --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 59c380de29..8ad49cbd74 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -56,11 +56,15 @@ jobs: 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 + 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\ From dca2fee83238dc6ac242dac82e5d91dcab7e0174 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 7 May 2026 10:32:20 +0000 Subject: [PATCH 2/2] ci: opt ilammy/msvc-dev-cmd into Node.js 24 to clear deprecation warning Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenDJ/sessions/015fa07b-c854-4af0-9a19-f573c29c7ad7 Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com> --- .github/workflows/build.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8ad49cbd74..72e79360b0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -59,6 +59,10 @@ jobs: - 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