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

copilot-swe-agent[bot]
yesterday 8c23446718bd7e2c7291e8de28f1b7f7d9257a98
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>
1 files modified
6 ■■■■ changed files
.github/workflows/build.yml 6 ●●●● patch | view | raw | blame | history
.github/workflows/build.yml
@@ -56,11 +56,15 @@
         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\