forked from microsoft/XamlBehaviors
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.vsts-ci.yml
64 lines (52 loc) · 2.74 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
jobs:
- job: VS_Latest
variables:
NUGET_PACKAGES: $(Agent.WorkFolder)\.nuget
NUGET_HTTP_CACHE_PATH: $(Agent.WorkFolder)\.nuget-http-cache
pool:
vmImage: 'windows-2022'
steps:
# Restore nuget.org to the list of existing sources, .NET 6 Pre 2 may somehow remove it
- powershell: |
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org | Out-Null
$global:LASTEXITCODE = 0
displayName: Adjust nuget.org source
- pwsh: |
dotnet tool uninstall nbgv -g
dotnet tool install nbgv -g --version 3.6.139
nbgv cloud -a
displayName: Version with NBGV
name: NBGV
- pwsh: |
$InformationalVersion="$(NBGV_SemVer2)+$(NBGV_GitCommitId)-$(NBGV_BuildingRef)".Replace("refs/heads/","").Replace("/","-")
echo "##vso[task.setvariable variable=NBGV_InformationalVersion;]$InformationalVersion"
echo "##vso[task.setvariable variable=NBGV_InformationalVersion;isOutput=true;]$InformationalVersion"
echo "Informational Version: $InformationalVersion"
displayName: Generate Informational Version
name: NBGV_InformationalVersion
- template: scripts/ci/dotnet-install-windows.yml
- pwsh: |
cd src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity
dotnet build Microsoft.Xaml.Interactivity.Uno.csproj -c Release /p:UseWinUI=true "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(NBGV_SemVer2)" "/p:InformationalVersion=$(NBGV_InformationalVersion)" /detailedsummary /bl:$(build.artifactstagingdirectory)\build-lib-winui.binlog
displayName: Build WinUI package
- pwsh: |
cd src\BehaviorsSDKManaged\Microsoft.Xaml.Interactivity
dotnet build Microsoft.Xaml.Interactivity.Uno.csproj -c Release /p:UseWinUI=false "/p:PackageOutputPath=$(build.artifactstagingdirectory)\nuget" "/p:PackageVersion=$(NBGV_SemVer2)" "/p:InformationalVersion=$(NBGV_InformationalVersion)" /detailedsummary /bl:$(build.artifactstagingdirectory)\build-lib-winui.binlog
displayName: Build UWP package
- pwsh: |
cd samples\CS\XamlBehaviorsSample.Uno
dotnet publish XamlBehaviorsSampleUno.csproj -f net9.0-browserwasm -c Release /p:UseWinUI=true /bl:$(build.artifactstagingdirectory)\build-sample.binlog
displayName: Build Sample App
- template: scripts/ci/sign-packages.yml
- task: PublishBuildArtifacts@1
condition: always()
inputs:
PathtoPublish: '$(build.artifactstagingdirectory)'
ArtifactName: xamlbehavior-drop
publishLocation: Container
- task: PublishBuildArtifacts@1
displayName: Publish Wasm site files
inputs:
pathToPublish: .\samples\CS\XamlBehaviorsSample.Uno\bin\Release\net9.0-browserwasm\publish
artifactType: container
artifactName: xamlbehavior-wasm