-
Notifications
You must be signed in to change notification settings - Fork 9
/
.vsts-ci.yml
99 lines (77 loc) · 2.84 KB
/
.vsts-ci.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
jobs:
- job: Windows
pool:
vmImage: 'windows-latest'
variables:
- name: NUGET_PACKAGES
value: $(Agent.WorkFolder)\.nuget
- name: NUGET_HTTP_CACHE_PATH
value: $(Agent.WorkFolder)\.nuget-http-cache
- group: 'Uno Platform authenticode signing'
steps:
- checkout: self
clean: true
- template: gitversion-step.yml
- task: UseDotNet@2
displayName: 'Use .NET 5 SDK'
inputs:
version: 5.x
- task: UseDotNet@2
displayName: 'Use .NET SDK'
inputs:
version: 9.0.100-rc.2.24474.11
includePreviewVersions: true
- powershell: dotnet workload install wasm-tools
displayName: 'Install .NET Wasm Workload'
- powershell: |
dotnet build /r /p:Configuration=Release src/SQLitePCLRaw.Wasm-ci.slnf "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$env:GITVERSION_FullSemVer" "/p:InformationalVersion=$env:GITVERSION_InformationalVersion" /detailedsummary
- task: DotNetCoreInstaller@0
inputs:
version: '2.1.504'
- task: PowerShell@2
displayName: Authenticode Sign Packages
inputs:
filePath: build/Sign-Package.ps1
env:
SignClientUser: $(SignClientUser)
SignClientSecret: $(SignClientSecret)
SignPackageName: "Uno.SQLitePCLRaw.Wasm"
SignPackageDescription: "Uno.SQLitePCLRaw.Wasm"
ArtifactDirectory: $(build.artifactstagingdirectory)
condition: and(succeeded(), not(eq(variables['build.reason'], 'PullRequest')), not(eq(variables['SignClientSecret'], '')), not(eq(variables['SignClientUser'], '')))
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: uno.sqlitepclwasmprovider-drop
publishLocation: Container
- job: Linux
pool:
vmImage: 'ubuntu-latest'
container: unoplatform/wasm-build:3.0
variables:
DotnetRuntimePath: /usr/share/dotnet
steps:
- checkout: self
clean: true
- template: gitversion-step.yml
- task: UseDotNet@2
displayName: 'Use .NET 5 SDK'
inputs:
version: 5.x
- task: UseDotNet@2
displayName: 'Use .NET SDK'
inputs:
version: 9.0.100-rc.2.24474.11
includePreviewVersions: true
- bash: dotnet workload install wasm-tools
displayName: 'Install .NET Wasm Workload'
- bash: |
dotnet publish -c Release "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$GITVERSION_FULLSEMVER" "/p:InformationalVersion=$GITVERSION_INFORMATIONALVERSION" ./src/samples/EFCoreSample/EFCoreSample.Wasm/EFCoreSample.Wasm.csproj
displayName: 'Build Wasm Head'
- task: PublishBuildArtifacts@1
displayName: Publish Package Artifacts
inputs:
pathToPublish: ./src/samples/EFCoreSample/EFCoreSample.Wasm/bin/Release/net9.0/publish/wwwroot
artifactType: container
artifactName: EFCoreSample-Wasm