-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathappveyor.yml
95 lines (76 loc) · 2.65 KB
/
appveyor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
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