1 Star 0 Fork 0

vsf-linux / sdlpal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.appveyor.yml 2.18 KB
一键复制 编辑 原始数据 按行查看 历史
version: 2.0.{build}
image:
- Visual Studio 2019
environment:
CLOUDSMITH_API_KEY:
secure: gryxZxQ1A85JeBI+HHk8GQqY/RQ4y8Oq8kR3yZ2v9zmtnUEmtPmkARFfoypUO0K8
matrix:
- solution_name: win32/sdlpal.sln
APPX_OPTIONS:
- solution_name: winrt/SDLPal.UWP.sln
APPX_OPTIONS: /p:AppxBundle=Always;AppxBundlePlatforms="x86|x64|ARM|ARM64";AppxPackageDir="AppPackages"
build_script:
- |-
msbuild /nologo /m %solution_name% /p:Configuration=Release %APPX_OPTIONS%
before_build:
- |-
git submodule update --init --recursive
cd winrt
if "%solution_name%"=="winrt/SDLPal.UWP.sln" nuget restore SDLPal.UWP.sln
cd ..
pip install cloudsmith-cli
after_build:
- |-
if exist win32\Win32\Release\sdlpal.exe ( cd win32\Win32\Release & 7z a ..\..\..\sdlpal-win32-msvc.zip sdlpal.exe & cd ..\..\..\ )
for /d %%d in ("winrt\SDLPal.UWP\AppPackages\*") do ( cd %%d & del /q *.appxsym & 7z a ..\..\..\..\sdlpal-uwp.zip * & cd ..\..\..\..\ )
- ps: >-
if([string]::IsNullOrEmpty($env:APPVEYOR_PULL_REQUEST_NUMBER)) {
$COMMIT_DATE=((git show -s --format=%cs)|out-string).trim()
$REV=((git rev-list --count HEAD)|out-string).trim()
$COMMIT_ID=((git rev-parse --short HEAD)|out-string).trim()
$VERSION="v$COMMIT_DATE-r$REV-g$COMMIT_ID"
# upload artifacts
if (Test-Path "sdlpal-win32-msvc.zip") { cloudsmith upload raw sdlpal/sdlpal "sdlpal-win32-msvc.zip" --version $VERSION --name win32-msvc --republish --tags "branch/$env:APPVEYOR_REPO_BRANCH"}
if (Test-Path "sdlpal-uwp.zip") { cloudsmith upload raw sdlpal/sdlpal "sdlpal-uwp.zip" --version $VERSION --name UWP --republish --tags "branch/$env:APPVEYOR_REPO_BRANCH"}
}
deploy:
- provider: GitHub
on:
appveyor_repo_tag: true
auth_token:
secure: SDvpRENFzV+oGUJOpB3TtbzNu9pcQ6MAElcNRTXwFjagjsy5X70ylfO/1EAfdrRv
artifacts:
- path: sdlpal-win32-msvc.zip
name: Win32
- path: sdlpal-uwp.zip
name: UWP
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/2accb0e6e37119e604b3
method: POST
on_build_success: true
on_build_failure: true
on_build_status_changed: true
1
https://gitee.com/vsf-linux/sdlpal.git
git@gitee.com:vsf-linux/sdlpal.git
vsf-linux
sdlpal
sdlpal
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891