Skip to content

Commit 4c60cef

Browse files
authored
Fix performance tests project and improvements (#4491)
* Throw error if tests didn't run. * Fix output color. * Use .NET 8. Disable CPM. * Use .NET 8 SDK. * Fix Intall MAUI task. * MAUI iOS to 17 * net6.0-ios * Remove includePreviewVersions. Change LangVersion. * Revert using .NET 8. Use .NET 8 and 6 in build pipeline. * includePreviewVersions: true * Run perf project on net6. * Revert. * Fix.
1 parent f7f2faf commit 4c60cef

12 files changed

+45
-99
lines changed

LibsAndSamples.sln

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "pipelines", "pipelines", "{
8888
build\pipeline-pullrequest.yaml = build\pipeline-pullrequest.yaml
8989
build\pipeline-releasebuild-netonly.yaml = build\pipeline-releasebuild-netonly.yaml
9090
build\pipeline-releasebuild.yaml = build\pipeline-releasebuild.yaml
91-
build\template-android-appcenter-tests.yaml = build\template-android-appcenter-tests.yaml
9291
build\template-build-and-prep-automation.yaml = build\template-build-and-prep-automation.yaml
9392
build\template-build-and-run-all-tests.yaml = build\template-build-and-run-all-tests.yaml
9493
build\template-cachecompat-automation.yaml = build\template-cachecompat-automation.yaml
95-
build\template-ci-and-pr.yaml = build\template-ci-and-pr.yaml
9694
build\template-desktop-unit-and-automation.yaml = build\template-desktop-unit-and-automation.yaml
97-
build\template-install-dotnet-core.yaml = build\template-install-dotnet-core.yaml
9895
build\template-install-keyvault-secrets.yaml = build\template-install-keyvault-secrets.yaml
99-
build\template-ios-appcenter-tests.yaml = build\template-ios-appcenter-tests.yaml
10096
build\template-nuget-pack.yaml = build\template-nuget-pack.yaml
10197
build\template-OneBranch-CI-libsandsamples.yaml = build\template-OneBranch-CI-libsandsamples.yaml
10298
build\template-OneBranch-Release-libsandsamples.yaml = build\template-OneBranch-Release-libsandsamples.yaml

build/pipeline-perf-tests-automation.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,19 @@ pool:
1616
variables:
1717
BuildPlatform: 'any cpu'
1818
BuildConfiguration: 'release'
19+
BuildRuntime: 'net6.0'
1920

2021
jobs:
2122
- job: 'BuildJob'
2223
displayName: 'Build and run tests'
2324
steps:
2425
- task: NuGetToolInstaller@1
25-
displayName: 'Use latest NuGet 6.x'
26+
displayName: 'Use the latest NuGet 6.x'
2627
inputs:
2728
versionSpec: 6.x
2829

2930
- task: UseDotNet@2
30-
displayName: 'Use .Net Core SDK 3.x'
31-
inputs:
32-
version: 3.x
33-
34-
- task: UseDotNet@2
35-
displayName: 'Use .Net Core sdk 6.x'
31+
displayName: 'Use the latest .NET 6'
3632
inputs:
3733
version: 6.x
3834

build/pipeline-releasebuild-netonly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ stages:
2727
versionSpec: 6.x
2828

2929
- task: UseDotNet@2
30-
displayName: 'Use .NET Core SDK 6.x'
30+
displayName: 'Use the latest .NET 6'
3131
inputs:
3232
version: 6.x
3333

build/template-build-and-prep-automation.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,8 @@ steps:
55
inputs:
66
versionSpec: 6.x
77

8-
# Unit tests require .NET 3.x
98
- task: UseDotNet@2
10-
displayName: 'Use .Net Core SDK 3.x'
11-
inputs:
12-
version: 3.x
13-
14-
# Use the latest .NET SDK
15-
- task: UseDotNet@2
16-
displayName: 'Use .Net Core sdk 6.x'
9+
displayName: 'Use the latest .NET 6'
1710
inputs:
1811
version: 6.x
1912

build/template-ci-and-pr.yaml

Lines changed: 0 additions & 32 deletions
This file was deleted.

build/template-desktop-unit-and-automation.yaml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
steps:
22
- task: UseDotNet@2
3-
displayName: 'Use .Net Core SDK 3.x'
4-
inputs:
5-
version: 3.x
6-
7-
- task: UseDotNet@2
8-
displayName: 'Use .Net Core SDK 5.x'
9-
inputs:
10-
version: 5.x
11-
12-
- task: UseDotNet@2
13-
displayName: 'Use .Net Core SDK 6.x'
3+
displayName: 'Use the latest .NET 6'
144
inputs:
155
version: 6.x
16-
includePreviewVersions: true
176

187
- task: DownloadPipelineArtifact@2
198
displayName: 'Download Drop'

build/template-install-dotnet-core.yaml

Lines changed: 0 additions & 8 deletions
This file was deleted.

build/template-pack-and-sign-packages.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ steps:
1818

1919
# Use the latest .NET SDK
2020
- task: UseDotNet@2
21-
displayName: 'Use .Net Core sdk 6.x'
21+
displayName: 'Use the latest .NET 6'
2222
inputs:
2323
version: 6.x
24-
includePreviewVersions: true
2524

2625
- task: PowerShell@2
2726
displayName: 'Installing Xamarin iOS/macOS components'
@@ -52,7 +51,6 @@ steps:
5251
targetType: 'inline'
5352
script: |
5453
dotnet nuget locals all --clear
55-
dotnet workload install maui --source https://api.nuget.org/v3/index.json
5654
dotnet workload install android ios macos maui --source https://api.nuget.org/v3/index.json
5755
5856
- task: JavaToolInstaller@0

build/template-prebuild-code-analysis.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ steps:
88
versionSpec: '16.x'
99

1010
- task: UseDotNet@2
11-
displayName: 'Use .NET SDK 6.x'
11+
displayName: 'Use the latest .NET 6'
1212
inputs:
1313
version: 6.x
1414

build/template-restore-build-libsandsamples.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ steps:
3333
inputs:
3434
targetType: 'inline'
3535
script: |
36-
dotnet workload install maui --source https://api.nuget.org/v3/index.json
37-
dotnet workload install android --source https://api.nuget.org/v3/index.json
36+
dotnet workload install android ios macos maui --source https://api.nuget.org/v3/index.json
3837
3938
- task: JavaToolInstaller@0
4039
displayName: 'Use Java 11'

0 commit comments

Comments
 (0)