-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
.appveyor.yml
117 lines (102 loc) · 3.34 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
init:
- ps: if ($env:APPVEYOR_REPO_TAG -eq "true") { $env:TAG_VERSION = "$env:APPVEYOR_REPO_TAG_NAME.$env:APPVEYOR_BUILD_NUMBER" } else { $env:TAG_VERSION = "v2.2.0.$env:APPVEYOR_BUILD_NUMBER-alpha" }
- ps: $env:TAG_VERSION = $env:TAG_VERSION -replace 'v',''
- ps: Write-Host "Setting version to '$env:TAG_VERSION'"
- ps: Update-AppveyorBuild -Version "$env:TAG_VERSION"
environment:
matrix:
- job_name: Windows x64 Build
platform: Any CPU
appveyor_build_worker_image: Visual Studio 2022
configuration: Release
- job_name: Linux Build
platform: Any CPU
appveyor_build_worker_image: Ubuntu2204
configuration: Release
- job_name: Mac Build
platform: Any CPU
appveyor_build_worker_image: macos-sonoma
configuration: Release
LMVTestAgentUsername: SecretAgentTest Resident
LMVTestAgentPassword:
secure: bOoXrGfLiHjZlCG1tJ+nDQ==
PfxDownloadUrl:
secure: T8uKu+tTR2G7LDE1zPGNOi+prl4YaKXP6DOC5eU6A14FEQkd8PFR3nQ1WMwryphJ
PfxDownloadPasswd:
secure: nAIqrjhaoamhiuAcae/xNw==
PfxPassword:
secure: +vWSGzLkiBGVIxfPb+iRtD+/maQjI2d92hN4PoNAxMc=
matrix:
allow_failures:
- image: Ubuntu2204
- image: macos-sonoma
pull_requests:
do_not_increment_build_number: false
nuget:
disable_publish_on_pr: true
build:
project: LibreMetaverse.sln
parallel: true
verbosity: minimal
publish_nuget: true
publish_nuget_symbols: true
use_snupkg_format: true
cache:
- packages -> **\packages.config
- '%LocalAppData%\NuGet\Cache'
dotnet_csproj:
patch: true
file: '**\*.csproj;**\*.props'
version: '{version}'
package_version: '{version}'
before_build:
- dotnet --info
- dotnet restore LibreMetaverse.sln
artifacts:
- path: 'nuget_libraries.zip'
name: 'Nuget Library Archive'
type: Auto
- path: 'nuget_libraries_symbols.zip'
name: 'Nuget Library Symbols'
type: Auto
deploy:
- provider: NuGet
name: nuget_release
api_key:
secure: fO5RZZiaAOY+/uKN95VvLFZrUM8T8TWuTz7+hxIG6JKSZ3JMC4G/duM+g93kEENU
artifact: /.*LibreMetaverse.*(\.|\.s)nupkg/
skip_symbols: false
draft: false
prerelease: false
on:
job_name: Windows x64 build
APPVEYOR_REPO_TAG: true
- provider: GitHub
name: github_releases
description: Release v$(APPVEYOR_REPO_TAG)
tag: $(APPVEYOR_REPO_TAG)
auth_token:
secure: KPXQ74CJ+1aD3/H12JeVwMedPvcyr4aL9O/CFL8sGJHN/WZCYjKw92m8CodgO90D
artifact: /.*LibreMetaverse.*(\.|\.s)nupkg/
skip_symbols: false
draft: false
prerelease: false
on:
job_name: Windows x64 build
APPVEYOR_REPO_TAG: true
for:
-
matrix:
only: # remove either when mono stops crashing or we stop supporting net481
- job_name: Linux Build
- job_name: Mac Build
test: off
-
matrix:
only:
- job_name: Windows x64 Build
after_build:
# - ps: util/InstallRemotePfx.ps1 -PfxDownloadUrl $env:PfxDownloadUrl -PfxDownloadUser AppVeyor -PfxDownloadPasswd $env:PfxDownloadPasswd -PfxPasswd $env:PfxPassword
# - ps: util/SignPackages.ps1 -PfxPasswd $env:PfxPassword
- ps: Get-ChildItem -Filter "*.nupkg" -Path "C:\Users\appveyor\AppData\Local\Temp\" -recurse | Compress-Archive -DestinationPath "nuget_libraries.zip" -Verbose
- ps: Get-ChildItem -Filter "*.snupkg" -Path "C:\Users\appveyor\AppData\Local\Temp\" -recurse | Compress-Archive -DestinationPath "nuget_libraries_symbols.zip" -Verbose