appveyor-artifacts.cmd: Check %APPVEYOR_BUILD_WORKER_IMAGE% instead of %COMPILER%.

%COMPILER% *used* to be set when using msvc2013, but it isn't set when
building with msvc2015.
This commit is contained in:
David Korth 2023-07-06 22:12:42 -04:00
parent d3cafba1bd
commit e6bd641911

View File

@ -1,11 +1,9 @@
@ECHO ON @ECHO OFF
echo compiler: %compiler% if not "%APPVEYOR_BUILD_WORKER_IMAGE%" == "Visual Studio 2015" exit /b 0
echo configuration: %configuration% if not "%CONFIGURATION%" == "Release" exit /b 0
if not "%compiler%" == "msvc2015" exit /b 0
if not "%configuration%" == "Release" exit /b 0
cpack --version cpack --version
cpack -C "%configuration%" cpack -C "%CONFIGURATION%"
if ERRORLEVEL 1 exit /b %ERRORLEVEL% if ERRORLEVEL 1 exit /b %ERRORLEVEL%
for %%z in (*.zip) do appveyor PushArtifact "%%z" for %%z in (*.zip) do appveyor PushArtifact "%%z"
exit /b %ERRORLEVEL% exit /b %ERRORLEVEL%