forked from unoplatform/Uno.Wasm.Bootstrap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vsts-ci-macos.yml
63 lines (50 loc) · 1.73 KB
/
.vsts-ci-macos.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
parameters:
jobName: ''
vmImage: ''
netcore_version: ''
jobs:
- job: ${{ parameters.jobName }}
pool:
vmImage: ${{ parameters.vmImage }}
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)/.nuget
EMSCRIPTEN_VERSION: 1.40.0
SourceLinkEnabled: false
steps:
- bash: |
cd $(Agent.WorkFolder)
wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-mac.zip
unzip ninja-mac.zip -d ninja-mac
displayName: 'Install Ninja'
- bash: |
cd ~
echo Installing emscripten $(EMSCRIPTEN_VERSION)
git clone --branch $(EMSCRIPTEN_VERSION) https://github.com/emscripten-core/emsdk
cd ~/emsdk
./emsdk install $(EMSCRIPTEN_VERSION)
./emsdk activate $(EMSCRIPTEN_VERSION)
displayName: 'Setup Emscripten'
- bash: |
source ~/emsdk/emsdk_env.sh
export PATH=$PATH:$(Agent.WorkFolder)/ninja-mac
msbuild /r /t:Publish /p:Configuration=Release src/Uno.Wasm.Bootstrap.sln
displayName: MSBuild Validation
- task: CopyFiles@2
inputs:
SourceFolder: $(build.sourcesdirectory)/src/Uno.Wasm.AotTests/bin/Release/netstandard2.0/dist
Contents: '**/*.*'
TargetFolder: $(build.artifactstagingdirectory)
CleanTargetFolder: false
OverWrite: false
flattenFolders: false
- bash: |
cd $(build.sourcesdirectory)/src/Uno.Wasm.Sample
dotnet build || true # expected failure (nuget restore does not provide the packager a proper TargetFramework support)
dotnet build
displayName: .NET Core Validation
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: $(build.artifactstagingdirectory)
ArtifactName: uno-wasm-bootstrap-macos-aot
ArtifactType: Container