Add a VCVer case for the new Visual Studio version. Use
ilammy/msvc-dev-cmd to set up the build environments.
fi
windows:
- runs-on: windows-2019
+ runs-on: windows-latest
env:
KRB_INSTALL_DIR: C:\kfw
steps:
shell: cmd
run: |
mkdir %KRB_INSTALL_DIR%
+ - uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: x86
- name: Build 32-bit
shell: cmd
run: |
cd src
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars32.bat"
set
set PATH=%PATH%;%wix%bin
nmake -f Makefile.in prep-windows
cd windows\installer\wix
nmake
rename kfw.msi kfw32.msi
+ - uses: ilammy/msvc-dev-cmd@v1
+ with:
+ arch: x64
- name: Build 64-bit
shell: cmd
run: |
cd src
- call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
set
set PATH=%PATH%;%wix%bin;"%WindowsSdkVerBinPath%"\x86
nmake clean
<?define VCVer="141"?>
<?elseif $(env.VISUALSTUDIOVERSION) = "16.0"?>
<?define VCVer="142"?>
+ <?elseif $(env.VISUALSTUDIOVERSION) = "17.0"?>
+ <?define VCVer="143"?>
<?else?>
<?error Unknown MFC version?>
<?endif?>