-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
appveyor.yml
187 lines (155 loc) · 6.29 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
image: Visual Studio 2022
branches:
# whitelist
only:
- master
skip_tags: true
skip_non_tags: false
version: '0.0.{build}'
environment:
token:
secure: YPPyzDbCboQKYOfAl/4XahyYfDiWOsyjoL2WjyNOxH4=
gitfetch:
secure: v/vwWedaFbZZt7xBtarpKXtoaub9EY/zbvwdUz9Yccsc0rykWiDaV1zYuMjDb8kn
assembly_info:
patch: true
file: 'src\**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}-rc1'
dotnet_csproj:
patch: true
file: 'src\**\*.csproj; **\*.csproj'
version: '{version}'
package_version: $(APPVEYOR_BUILD_VERSION)
assembly_version: '{version}'
file_version: '{version}'
informational_version: '{version}'
before_build:
- ps: |
$env:MY_XT= $env:APPVEYOR_REPO_COMMIT_MESSAGE
if ($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)
{
$env:MY_XT="$($env:APPVEYOR_REPO_COMMIT_MESSAGE) \n $($env:APPVEYOR_REPO_COMMIT_MESSAGE_EXTENDED)"
}
- ps: |
$headers = @{}
$headers['Authorization'] = "Bearer $env:gitfetch"
$headers['User-Agent'] = "Juka Builder"
$headers["Content-type"] = "application/json"
$env:MY_USERNAME=(Invoke-WebRequest -URI "https://api.github.com/repos/JukaLang/juka/commits/master" -Headers $headers -UseBasicParsing | ConvertFrom-Json).author.login
- cd src
- dotnet test
after_build:
- dotnet publish -c Release --self-contained true --runtime osx-x64 Juka
- dotnet publish -c Release --self-contained true --runtime osx-x64 JukaApi
- dotnet publish -c Release --self-contained true --runtime linux-x64 Juka
- dotnet publish -c Release --self-contained true --runtime linux-x64 JukaApi
- dotnet publish -c Release --self-contained true --runtime linux-arm Juka
- dotnet publish -c Release --self-contained true --runtime linux-arm JukaApi
- dotnet publish -c Release --self-contained true --runtime linux-arm64 Juka
- dotnet publish -c Release --self-contained true --runtime linux-arm64 JukaApi
- dotnet publish -c Release --self-contained true --runtime win-x86 Juka
- dotnet publish -c Release --self-contained true --runtime win-x86 JukaApi
- dotnet publish -c Release --self-contained true --runtime win-x64 Juka
- dotnet publish -c Release --self-contained true --runtime win-x64 JukaApi
- dotnet publish -c Release --self-contained true --runtime win-arm64 Juka
- dotnet publish -c Release --self-contained true --runtime win-arm64 JukaApi
- dotnet pack --nologo -c Release JukaCompiler
- dotnet publish -c Release JukaAzureFunction
configuration: Release
artifacts:
- path: 'src\Juka\bin\Release\net8.0\win-x86\publish'
name: Juka_Windows_X86_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\win-x64\publish'
name: Juka_Windows_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\win-arm64\publish'
name: Juka_Windows_Arm64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\osx-x64\publish'
name: Juka_MacOS_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\linux-x64\publish'
name: Juka_Linux_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\linux-arm\publish'
name: Juka_Linux_Arm_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\Juka\bin\Release\net8.0\linux-arm64\publish'
name: Juka_Linux_Arm64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\win-x86\publish'
name: JukaAPI_Windows_X86_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\win-x64\publish'
name: JukaAPI_Windows_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\win-arm64\publish'
name: JukaAPI_Windows_Arm64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\osx-x64\publish'
name: JukaAPI_MacOS_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\linux-x64\publish'
name: JukaAPI_Linux_X64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\linux-arm\publish'
name: JukaAPI_Linux_Arm_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaApi\bin\Release\net8.0\linux-arm64\publish'
name: JukaAPI_Linux_Arm64_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaCompiler\bin\Release\net8.0\'
name: Juka_Compiler_dll_$(APPVEYOR_BUILD_VERSION)
type: zip
- path: 'src\JukaCompiler\bin\Release\*.nupkg'
name: Juka_Compiler
type: NuGetPackage
- path: 'src\JukaAzureFunction\bin\Release\net8.0\publish'
name: Juka_Azure_Function_$(APPVEYOR_BUILD_VERSION)
type: zip
deploy:
# Deploy to GitHub Releases
- provider: GitHub
artifact: /.*\.zip/
tag: '$(APPVEYOR_BUILD_VERSION)'
release: '📦 Juka v$(APPVEYOR_BUILD_VERSION)'
description: "## 🍂 Changelog \n $(MY_XT) \n\n Changes made by @$(MY_USERNAME)"
auth_token:
secure: v/vwWedaFbZZt7xBtarpKXtoaub9EY/zbvwdUz9Yccsc0rykWiDaV1zYuMjDb8kn
draft: false
prerelease: false
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: false # deploy on tag push only
- provider: NuGet
api_key:
secure: czYx9YBF3XdX/ZtkeV/kiKuuW805tpw7YWVWKLL8zfyer3yoy79st/MISEZxERLf
skip_symbols: false
artifact: /.*(\.|\.s)nupkg/
on:
branch: master # release from master branch only
APPVEYOR_REPO_TAG: false # deploy on tag push only
after_deploy:
- ps: $headers = @{}
- ps: $headers['Authorization'] = "Bearer $env:token"
- ps: $headers["Content-type"] = "application/json"
- ps: $dbinar = @{}
- ps: $dbinar["accountName"] = 'TheAndreiM'
- ps: $dbinar["projectSlug"] = 'jukaIDE'
- ps: $dbinar["branch"] = 'main'
- ps: $dbinar["environmentVariables"] = @{}
- ps: $bod = $dbinar | ConvertTo-json
- ps: Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Method POST -body $bod
- ps: $headers = @{}
- ps: $headers['Authorization'] = "Bearer $env:token"
- ps: $headers["Content-type"] = "application/json"
- ps: $dbinar = @{}
- ps: $dbinar["accountName"] = 'TheAndreiM'
- ps: $dbinar["projectSlug"] = 'jukaApp'
- ps: $dbinar["branch"] = 'master'
- ps: $dbinar["environmentVariables"] = @{}
- ps: $bod = $dbinar | ConvertTo-json
- ps: Invoke-RestMethod -Uri 'https://ci.appveyor.com/api/builds' -Headers $headers -Method POST -body $bod