Skip to content

Commit 738483d

Browse files
authored
Merge branch 'master' into PageNavigation
2 parents 9082f85 + b7633e6 commit 738483d

File tree

4,963 files changed

+201379
-40985
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

4,963 files changed

+201379
-40985
lines changed

.DS_Store

-6 KB
Binary file not shown.

.azure-pipelines.BuildMatrix.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
jobs:
2+
- job: Build
3+
dependsOn: VS_Latest
4+
5+
pool:
6+
vmImage: 'windows-2022'
7+
8+
strategy:
9+
# matrix:
10+
# Commerce:
11+
# solutionPath: 'D:\a\1\s\reference\Commerce\Commerce.sln'
12+
# NotChanged:
13+
# solutionPath: 'D:\a\1\s\UI\AdvancedXBind\AdvancedXBind.sln'
14+
matrix: $[ dependencies.VS_Latest.outputs['generateJson.samplesJson'] ]
15+
16+
variables:
17+
- name: UseDotNetNativeToolchain
18+
value: false
19+
20+
steps:
21+
- template: build-samples.yml
22+
parameters:
23+
path: $(solutionPath)

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,3 +242,5 @@ msbuild.binlog
242242
/Uno/Uno.UI.TestComparer/Properties/launchSettings.json
243243
*.diagsession
244244

245+
/UI/MauiEmbedding/GrialKitApp/nuget.config
246+
/UI/MauiEmbedding/GrialKitApp/GrialKitApp.MauiControls/GrialLicense

.vsts-ci.canaries.yml

Lines changed: 10 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -7,34 +7,21 @@ steps:
77
dotnet sln Uno.Samples.generated.sln add (Get-ChildItem -Recurse *.csproj)
88
$env:MSBuildExtensionsPath = $savedMSBuildExtensionsPath
99
10-
- task: UseDotNet@2
11-
inputs:
12-
packageType: 'runtime'
13-
version: '2.2.0'
14-
1510
- task: nventiveCanaryUpdater@5
11+
displayName: 'Canary Update'
12+
condition: startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries')
1613
inputs:
1714
solution: Uno.Samples.generated.sln
1815
usePrivateFeed: false
1916
useNuGetOrg: true
20-
mergeBranch: false
21-
nugetUpdaterVersion: '2.1.1'
22-
allowDowngrade: true
23-
packageAuthor: 'nventive'
17+
mergeBranch: true
18+
branchToMerge: master
19+
nugetUpdaterVersion: '2.3.0-alpha.46'
20+
nugetVersion: dev
21+
packageAuthor: 'nventive,unoplatform,uno platform'
2422
summaryFile: '$(Build.ArtifactStagingDirectory)/Summary.md'
2523
resultFile: '$(Build.ArtifactStagingDirectory)/Results.json'
24+
additionalPublicSources: 'https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/dev-uno5/nuget/v3/index.json'
2625

27-
- powershell: |
28-
dotnet tool uninstall nventive.nuget.updater.tool --tool-path $(Agent.TempDirectory)
29-
30-
- task: nventiveCanaryUpdater@5
31-
inputs:
32-
solution: Uno.Samples.generated.sln
33-
usePrivateFeed: false
34-
useNuGetOrg: true
35-
mergeBranch: false
36-
nugetUpdaterVersion: '2.1.1'
37-
allowDowngrade: true
38-
packageAuthor: 'Uno Platform'
39-
summaryFile: '$(Build.ArtifactStagingDirectory)/Summary-Uno.md'
40-
resultFile: '$(Build.ArtifactStagingDirectory)/Results-Uno.json'
26+
- pwsh: |
27+
del Uno.Samples.generated.sln

.vsts-ci.yml

Lines changed: 29 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
jobs:
22
- job: VS_Latest
3-
timeoutInMinutes: 240
3+
timeoutInMinutes: 600
44

55
pool:
66
vmImage: windows-2022
@@ -9,53 +9,41 @@ jobs:
99
- checkout: self
1010
clean: true
1111

12-
- ${{ if startsWith(variables['Build.SourceBranch'], 'refs/heads/canaries') }}:
13-
- template: .vsts-ci.canaries.yml
14-
15-
# Restore nuget.org to the list of existing sources, .NET 6 Pre 2 may somehow remove it
16-
- powershell: |
17-
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org | Out-Null
18-
$global:LASTEXITCODE = 0
19-
displayName: Adjust nuget.org source
20-
21-
- template: build/templates/dotnet6-install-windows.yml
22-
2312
- powershell: |
24-
& choco install vswhere
25-
$msbuildpath=(vswhere -latest -requires Microsoft.Component.MSBuild -find MSBuild\**\Bin\MSBuild.exe -nologo)
26-
27-
echo "##vso[task.setvariable variable=msbuildpath]$msbuildpath"
28-
displayName: Set MSBUILDPATH
29-
30-
- powershell: |
31-
Set-PSDebug -Trace 1
32-
33-
$SolutionsToBuild = Get-ChildItem -Path **\*.sln -Recurse | Where-Object {$_.FullName -notmatch "\\ArchivedProjects\\"}
34-
3513
if($env:System_PullRequest_TargetBranch -eq $null) { $TargetBranch = "master" } else { $TargetBranch = $env:System_PullRequest_TargetBranch; }
3614
37-
foreach ($SolutionName in $SolutionsToBuild) {
15+
$dict = New-Object 'System.Collections.Generic.Dictionary[String,System.Collections.Generic.Dictionary[String,String]]'
16+
$samples = Get-ChildItem -Path **\*.sln -Recurse | Where-Object {$_.FullName -notmatch "\\ArchivedProjects\\"}
17+
foreach($sample in $samples){
3818
39-
$solutionPath=[System.IO.Path]::GetDirectoryName($SolutionName);
40-
git diff --quiet HEAD "origin/$TargetBranch" -- "$solutionPath"
19+
$solutionPath=[System.IO.Path]::GetDirectoryName($sample.FullName);
20+
Write-Host "$solutionPath"
4121
42-
# Only build if there a change in the solution path for the current PR, if we're not in a PR
43-
if( ('$env:System_PullRequest_PullRequestId)' -eq '') -or ($global:LASTEXITCODE -ne 0)) {
22+
git diff --quiet HEAD "origin/$TargetBranch" -- "$solutionPath"
4423
45-
& $env:msbuildpath $SolutionName /r /p:Configuration=Release /p:AotAssemblies=false /p:WasmShellILLinkerEnabled=false /ds ;
24+
# Only build if there a change in the solution path for the current PR, if we're not in a PR
25+
if( ("$env:System_PullRequest_PullRequestId" -eq '') -or ($global:LASTEXITCODE -ne 0)) {
26+
Write-Host "Adding $solutionPath"
27+
$item = New-Object 'System.Collections.Generic.Dictionary[String,String]'
28+
$item.Add("solutionPath", $sample.FullName)
29+
$name = $sample.Name.Split(".")[0]
30+
if(!$dict.ContainsKey($name)){
31+
$dict.Add($name, $item)
32+
}
33+
}
34+
$global:LASTEXITCODE = 0
4635
47-
if (($lastexitcode -ne 0)) {
48-
exit $lastexitcode
49-
}
50-
51-
# Clean the whole tree after every build to avoid disk space issues
52-
git clean -fdx
53-
}
54-
5536
}
5637
57-
displayName: Build samples
38+
$SolutionsJson = $dict | ConvertTo-Json -Compress
39+
40+
Write-Host $SolutionsJson
41+
Write-Host "##vso[task.setvariable variable=samplesJson;isOutput=true]$SolutionsJson"
42+
name: generateJson
43+
displayName: Generate Json of Samples
44+
45+
- template: .azure-pipelines.BuildMatrix.yml
5846

59-
- task: PublishBuildArtifacts@1
60-
inputs:
61-
pathtoPublish: $(Build.ArtifactStagingDirectory)
47+
# - task: PublishBuildArtifacts@1
48+
# inputs:
49+
# pathtoPublish: $(Build.ArtifactStagingDirectory)

NuGet.config

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
5+
<add key="uno dev" value="https://pkgs.dev.azure.com/uno-platform/1dd81cbd-cb35-41de-a570-b0df3571a196/_packaging/unoplatformdev/nuget/v3/index.json" />
6+
</packageSources>
7+
</configuration>

0 commit comments

Comments
 (0)