From 7fb1dc4f65a3b03d2fcd1fcf9032879708cf8566 Mon Sep 17 00:00:00 2001 From: Vladimir Dubrovin <3proxy@3proxy.ru> Date: Tue, 31 Mar 2026 10:43:13 +0300 Subject: [PATCH] Update c-cpp.yml --- .github/workflows/c-cpp.yml | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index b9882fc..c3afde0 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -59,15 +59,20 @@ jobs: - name: make clean Windows if: ${{ startsWith(matrix.target, 'windows') }} run: make -f Makefile.win clean -# - name: make Windows MSVC -# if: ${{ startsWith(matrix.target, 'windows') }} -# shell: cmd -# run: | -# call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat" -# nmake /F Makefile.msvc64' -# env: -# LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"' -# CFLAGS: '-I "c:/program files/openssl/include"' -# - name: make clean Windows -# if: ${{ startsWith(matrix.target, 'windows') }} -# run: nmake /F Makefile.msvc64 clean + - name: Add msbuild to PATH + if: ${{ startsWith(matrix.target, 'windows') }} + uses: microsoft/setup-msbuild@v3 + - name: make Windows MSVC + if: ${{ startsWith(matrix.target, 'windows') }} + shell: cmd + run: | + call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" + D: + cd "D:/a/3proxy/3proxy" + nmake /F Makefile.msvc64 + env: + LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"' + CFLAGS: '-I "c:/program files/openssl/include"' + - name: make clean Windows + if: ${{ startsWith(matrix.target, 'windows') }} + run: nmake /F Makefile.msvc64 clean