加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
appveyor.yml 2.65 KB
一键复制 编辑 原始数据 按行查看 历史
roozbeh@homewin10.com 提交于 2019-03-07 01:30 . use SDL2
image: Visual Studio 2017
platform: x86
configuration: Release
init:
- tzutil /s "Mountain Standard Time"
- ps: '[System.TimeZoneInfo]::ClearCachedData()'
- ps: $env:my_fulldate = Get-Date -Format g
- ps: if(-not $env:APPVEYOR_PULL_REQUEST_NUMBER) { $env:is_not_pr = "true"; } else {$env:is_not_pr = "false";}
install:
- ps: Import-Module .\Scripts\Appveyor.ps1
- ps: Invoke-UpdateAppveyorVersion
- ps: Invoke-UpdateAssemblyVersion
- cd C:\Tools\vcpkg
- git pull
- .\bootstrap-vcpkg.bat
- vcpkg install sdl2:x86-windows zlib:x86-windows freetype:x86-windows libjpeg-turbo:x86-windows libpng:x86-windows dirent:x86-windows libiconv:x86-windows
- vcpkg integrate install
- cd %APPVEYOR_BUILD_FOLDER%
- git submodule init
- git submodule update
- git clone https://github.com/emscripten-core/emsdk.git --depth 1 c:\emsdk
- cd c:\emsdk
- emsdk install latest
- emsdk activate latest
- emsdk_env.bat
- cd %APPVEYOR_BUILD_FOLDER%
- set NODE_OPTIONS=--max_old_space_size=4096
cache: c:\tools\vcpkg\installed\
build_script:
- nuget restore WasmWinforms.sln
- ps: msbuild WasmWinforms.sln /p:Configuration=WasmRel /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- ps: msbuild WasmWinforms.sln /p:Configuration=Release /p:Platform=x86 /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
- dir %APPVEYOR_BUILD_FOLDER%\Output\bin\x86\Release
- nuget pack %APPVEYOR_BUILD_FOLDER%\Output\bin\x86\Release\Winforms.Wasm.nuspec -properties version=%APPVEYOR_BUILD_VERSION%
artifacts:
- path: '*.nupkg'
name: nuget package
#
# ------ End of shared configs -------------------
#
# ------ Individual configs start from here ------
# ------------------------------------------------
# configuration for prod branch
# Will enforce it
for:
-
version: 1.0.julian.{build}
#this section is added to previous section
deploy:
- provider: NuGet
server: https://www.nuget.org
api_key:
secure: Pzomenosg6JoLjvRbvOeQ4WcoOEMC5+NFfEgeYNScPCu4q8dG7z5uJlFVQF9E5DK
skip_symbols: true
artifact: nuget package
branches:
only:
- prod
# ------------------------------------------------
# configuration for master branch
# This is master branch
# publishes to AppveyorAgent and Github Releases
-
version: 0.8.julian.{build}
branches:
only:
- master
# ------------------------------------------------
# "fall back" configuration for all other branches
# no "branches" section defined
# nothing is published from feature branches
-
version: 0.1.0.julian-{build}-branch
skip_branch_with_pr: true
deploy: off
build : off
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化