From 8ef1b1acff1423a45e8f42dd7f3cf7fdf6b01852 Mon Sep 17 00:00:00 2001
From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Date: Wed, 01 Apr 2026 06:06:11 +0000
Subject: [PATCH] Move Windows native build before Maven and copy exes to lib
---
.github/workflows/build.yml | 17 +++++++++--------
1 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 886153d..017d78d 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -47,6 +47,15 @@
if: runner.os != 'Windows'
run: |
echo "MAVEN_PROFILE_FLAG=-P precommit" >> $GITHUB_OUTPUT
+ - 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\
+
- name: Build with Maven
timeout-minutes: 180
env:
@@ -235,14 +244,6 @@
opendj-server-legacy\target\package\opendj\bat\ldapsearch.bat --hostname localhost --port 1636 --bindDN "cn=Directory Manager" --bindPassword password --useSsl --trustAll --baseDN "dc=example2,dc=com" --searchScope sub "(uid=user.*)" dn | find /c '"dn:"' | findstr "10000"
opendj-server-legacy\target\package\opendj\bat\stop-ds.bat
- - 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
-
- name: Upload Windows exe artifacts
if: runner.os == 'Windows'
uses: actions/upload-artifact@v4
--
Gitblit v1.10.0