mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

copilot-swe-agent[bot]
2 days ago 8ef1b1acff1423a45e8f42dd7f3cf7fdf6b01852
Move Windows native build before Maven and copy exes to lib

Agent-Logs-Url: https://github.com/OpenIdentityPlatform/OpenDJ/sessions/7a28df62-1005-4859-8e60-7f15511a9a5d

Co-authored-by: vharseko <6818498+vharseko@users.noreply.github.com>
1 files modified
17 ■■■■ changed files
.github/workflows/build.yml 17 ●●●● patch | view | raw | blame | history
.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