Update c-cpp.yml

This commit is contained in:
Vladimir Dubrovin 2026-03-30 20:32:25 +03:00
parent ac1a667a50
commit cbbe4d999e

View File

@ -59,14 +59,10 @@ jobs:
- name: make clean Windows - name: make clean Windows
if: ${{ startsWith(matrix.target, 'windows') }} if: ${{ startsWith(matrix.target, 'windows') }}
run: make -f Makefile.win clean run: make -f Makefile.win clean
- name: Setup MSVC environment
if: ${{ startsWith(matrix.target, 'windows') }}
uses: microsoft/setup-msbuild@v3
with:
msbuild-architecture: x64
- name: make Windows MSVC - name: make Windows MSVC
if: ${{ startsWith(matrix.target, 'windows') }} if: ${{ startsWith(matrix.target, 'windows') }}
run: CMD /C 'call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\BuildTools\VC\Auxiliary\Build\vcvars64.bat" && nmake /F Makefile.msvc64' shell: cmd
run: call "C:\Program Files (x86)\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && nmake /F Makefile.msvc64
env: env:
LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"' LIBS: '-L "c:/program files/openssl/lib/VC/x64/MT"'
CFLAGS: '-I "c:/program files/openssl/include"' CFLAGS: '-I "c:/program files/openssl/include"'