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