From d23a1de9b396c94894a2cfb9ecfecc0649ee0e57 Mon Sep 17 00:00:00 2001
From: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Date: Wed, 01 Apr 2026 06:09:34 +0000
Subject: [PATCH] Move Build Windows native executables before Set Integration Test Environment

---
 .github/workflows/build.yml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 017d78d..e95b2cd 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -42,11 +42,6 @@
          path: ~/.m2/repository
          key: ${{ runner.os }}-m2-repository-${{ hashFiles('**/pom.xml') }}
          restore-keys: ${{ runner.os }}-m2-repository
-    - name: Set Integration Test Environment
-      id: failsafe
-      if: runner.os != 'Windows'
-      run:   |
-        echo "MAVEN_PROFILE_FLAG=-P precommit" >> $GITHUB_OUTPUT
     - name: Build Windows native executables
       if: runner.os == 'Windows'
       shell: cmd
@@ -55,6 +50,11 @@
         cd opendj-server-legacy\src\build-tools\windows
         nmake all
         xcopy /Y *.exe ..\..\..\lib\
+    - name: Set Integration Test Environment
+      id: failsafe
+      if: runner.os != 'Windows'
+      run:   |
+        echo "MAVEN_PROFILE_FLAG=-P precommit" >> $GITHUB_OUTPUT
 
     - name: Build with Maven
       timeout-minutes: 180

--
Gitblit v1.10.0