16
16
DOTNETRUNTIME_COMMIT : be32947d322ae71526ad1dde412a1dca44ea4fba
17
17
DOTNETSDK_VERSION : 9.0.100-preview.6.24328.19
18
18
ADDITIONAL_BUILD_ARGS : ' /p:MonoEnableAssertMessages=true /p:WasmEnableES6=true /p:WasmExceptionHandling=true'
19
+ GitVersion_Version : 5.10.3
19
20
20
21
concurrency :
21
22
group : ${{github.workflow}} - ${{github.ref}}
42
43
- uses : actions/checkout@v2
43
44
with :
44
45
submodules : true
45
-
46
+
47
+ - name : Setup GitVersion
48
+ uses :
gittools/actions/gitversion/[email protected]
49
+ with :
50
+ versionSpec : ${{ env.GitVersion_Version }}
51
+
52
+ - name : GitVersion
53
+ id : gitversion
54
+ uses :
gittools/actions/gitversion/[email protected]
55
+ with :
56
+ useConfigFile : true
57
+ configFilePath : build/gitversion.yml
58
+
46
59
- name : Set Variable from current Commit
47
60
run : |
48
61
Invoke-Expression "git rev-parse --short HEAD" | Out-String -NoNewLine -OutVariable CURRENT_COMMIT
@@ -70,26 +83,20 @@ jobs:
70
83
71
84
- name : Create artifact structure
72
85
run : |
73
- New-Item -ItemType Directory -Force -Path ./runtime/artifacts/packages/Release/Shipping/uno/runtimes/browser-wasm/native
74
- cd ./runtime/artifacts/packages/Release/Shipping/uno
86
+ New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE/nuget/tools
87
+ New-Item -ItemType Directory -Force -Path $env:GITHUB_WORKSPACE/ci-output
75
88
76
89
# Move cross compiler to appropriate location
77
- move $env:GITHUB_WORKSPACE\runtime\artifacts\bin\mono\Browser.wasm.Release\cross runtimes\browser-wasm\native
78
-
79
- - name : Zip Archive
80
- run : |
90
+ move $env:GITHUB_WORKSPACE\runtime\artifacts\bin\mono\Browser.wasm.Release\cross $env:GITHUB_WORKSPACE/nuget/tools
81
91
82
- Invoke-Expression "Get-Location | select -ExpandProperty Path" | Out-String -NoNewLine -OutVariable Current_Path
83
- $ARTIFACTS_FOLDER="$Current_Path\ci-artifacts"
84
- mkdir -p $ARTIFACTS_FOLDER
85
- cd .\runtime\artifacts\packages\Release\Shipping\uno
86
- Compress-Archive -DestinationPath $ARTIFACTS_FOLDER\dotnet-aot-wasm-windows-$env:CURRENT_COMMIT-$env:BASE_DOTNET_SHORT_COMMIT-${{ github.run_id }}-$env:BUILD_CONFIGURATION$archiveConfiguration.zip -Path *
92
+ cd $env:GITHUB_WORKSPACE/nuget
93
+ dotnet pack Uno.NETCore.App.Runtime.AOT.Cross.browser-wasm.csproj /p:OutputPath=$GITHUB_WORKSPACE/ci-output "/p:Version=${{ steps.gitversion.outputs.semVer }}"
87
94
88
95
- uses : actions/upload-artifact@v2
89
96
if : ${{ always() }}
90
97
with :
91
- name : wasm
92
- path : ci-artifacts
98
+ name : nuget
99
+ path : ci-output
93
100
94
101
# #
95
102
# # Build Job
@@ -105,6 +112,22 @@ jobs:
105
112
MONO_WASM_THREADS : ['multithread', 'singlethread']
106
113
107
114
steps :
115
+ - uses : actions/checkout@v2
116
+ with :
117
+ submodules : true
118
+
119
+ - name : Setup GitVersion
120
+ uses :
gittools/actions/gitversion/[email protected]
121
+ with :
122
+ versionSpec : ${{ env.GitVersion_Version }}
123
+
124
+ - name : GitVersion
125
+ id : gitversion
126
+ uses :
gittools/actions/gitversion/[email protected]
127
+ with :
128
+ useConfigFile : true
129
+ configFilePath : build/gitversion.yml
130
+
108
131
- name : Setup .NET SDK
109
132
110
133
with :
@@ -139,10 +162,6 @@ jobs:
139
162
- name : Trust My Directory
140
163
run : git config --global --add safe.directory /__w/Uno.DotnetRuntime.WebAssembly/Uno.DotnetRuntime.WebAssembly
141
164
142
- - uses : actions/checkout@v2
143
- with :
144
- submodules : true
145
-
146
165
- name : Set Variable from current Commit
147
166
run : |
148
167
set -e
@@ -184,15 +203,19 @@ jobs:
184
203
unzip -o '*.nupkg' -d uno
185
204
cd uno
186
205
rm *.nuspec
206
+
207
+ # remove unused assets that are part of the official SDK
187
208
rm -fR _rels
188
209
rm -fR package
210
+ rm -fR analyzers
211
+ rm -fR ref
212
+ rm -f \[Content_Types\].xml
213
+ rm -f Icon.png
214
+ rm -f LICENCE.TXT
215
+ find data ! -name 'RuntimeList.xml' -type f -exec rm -f {} +
189
216
190
217
- name : Zip Archive
191
218
run : |
192
- if [ '${{ matrix.MONO_WASM_THREADS }}' != 'singlethread' ]; then
193
- ARCHIVE_CONFIGURATION="-threads";
194
- fi
195
-
196
219
ARTIFACTS_FOLDER=`pwd`/ci-artifacts
197
220
mkdir -p $ARTIFACTS_FOLDER
198
221
cd ./runtime/artifacts/packages/Release/Shipping/uno
@@ -213,6 +236,18 @@ jobs:
213
236
with :
214
237
submodules : true
215
238
239
+ - name : Setup GitVersion
240
+ uses :
gittools/actions/gitversion/[email protected]
241
+ with :
242
+ versionSpec : ${{ env.GitVersion_Version }}
243
+
244
+ - name : GitVersion
245
+ id : gitversion
246
+ uses :
gittools/actions/gitversion/[email protected]
247
+ with :
248
+ useConfigFile : true
249
+ configFilePath : build/gitversion.yml
250
+
216
251
- name : Setup .NET SDK
217
252
218
253
with :
@@ -229,7 +264,7 @@ jobs:
229
264
cd nuget
230
265
ls -la
231
266
find . -name '*.zip' -exec sh -c 'unzip -d "${1%.*}" "$1"' _ {} \;
232
- dotnet pack /p:OutputPath=$GITHUB_WORKSPACE/ci-output
267
+ dotnet pack Uno.NETCore.App.Runtime.Mono.browser-wasm.csproj /p:OutputPath=$GITHUB_WORKSPACE/ci-output "/p:Version=${{ steps.gitversion.outputs.semVer }}"
233
268
234
269
- uses : actions/upload-artifact@v2
235
270
if : ${{ always() }}
0 commit comments