代码拉取完成,页面将自动刷新
version: 3.1.0.{Build}
environment:
matrix:
- PlatformToolset: v142
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019
#- PlatformToolset: v141_xp
# APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
platform:
- x64
- Win32
configuration:
- Release
- Debug
install:
- if "%platform%"=="x64" set platform_input=x64
- if "%platform%"=="Win32" set platform_input=Win32
- if "%platform%"=="x64" set archi=amd64
- if "%platform%"=="Win32" set archi=x86
- if "%PlatformToolset%"=="v141_xp" call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- if "%PlatformToolset%"=="v142" call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" %archi%
- nuget restore "%APPVEYOR_BUILD_FOLDER%"\SimpleXmlLib\SimpleXmlTests\packages.config -PackagesDirectory "%APPVEYOR_BUILD_FOLDER%"\packages
build_script:
- cd "%APPVEYOR_BUILD_FOLDER%"
- msbuild XMLTools.sln /m /p:configuration="%configuration%" /p:platform="%platform_input%" /p:PlatformToolset="%PlatformToolset%" /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
after_build:
- cd "%APPVEYOR_BUILD_FOLDER%"
- ps: |
Push-AppveyorArtifact "$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll" -FileName XMLTools.dll
if ($($env:APPVEYOR_REPO_TAG) -eq "true" -and $env:CONFIGURATION -eq "Release" -and $env:PLATFORMTOOLSET -eq "v142")
{
if($env:ARCH -eq "x64"){
$ZipFileName = "XMLTools_$($env:APPVEYOR_REPO_TAG_NAME)_x64.zip"
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll
#TODO add further dependencies and txt files
}
if($env:ARCH -eq "Win32"){
$ZipFileName = "XMLTools_$($env:APPVEYOR_REPO_TAG_NAME)_x86.zip"
7z a $ZipFileName $env:APPVEYOR_BUILD_FOLDER\$env:PLATFORM_INPUT\$env:CONFIGURATION\XMLTools.dll
#TODO add further dependencies and txt files
}
}
artifacts:
- path: XMLTools_*.zip
name: releases
deploy:
provider: GitHub
description: ''
auth_token:
secure: !!!TODO!!!
artifact: releases
draft: false
prerelease: false
force_update: true
on:
appveyor_repo_tag: true
PlatformToolset: v142
configuration: Release
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。