@@ -17,7 +17,7 @@ parameters:
17
17
archiveType : ' '
18
18
tarCompression : ' '
19
19
framework : ' net9.0' # Framework version to get versions for and build for
20
- perfRepo : ' main' # Perf repo to pull for the PerfLabExporter
20
+ perfBranch : ' main' # Performance branch to use for cloning
21
21
22
22
23
23
steps :
@@ -57,20 +57,6 @@ steps:
57
57
overwriteExistingFiles : true
58
58
cleanDestinationFolder : false
59
59
60
- - script : |
61
- echo '{ }' > ./global.json
62
- curl -o NuGet.config 'https://raw.githubusercontent.com/dotnet/maui/${{parameters.framework}}/NuGet.config'
63
- curl -o dotnet-install.sh 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh'
64
- curl -Lo maui-supported-sdk-version.json 'https://maui.blob.core.windows.net/metadata/sdks/${{parameters.framework}}.json'
65
- version=$(sed -nr 's/\s*"version": "(.*)"/\1/p' ./maui-supported-sdk-version.json)
66
- chmod -R a+rx .
67
- ./dotnet-install.sh --version $version --install-dir .
68
- ./dotnet --info
69
- ./dotnet workload install maui --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/${{parameters.framework}}.json --configfile NuGet.config
70
- ./dotnet workload install android --from-rollback-file https://maui.blob.core.windows.net/metadata/rollbacks/${{parameters.framework}}.json --configfile NuGet.config
71
- displayName: Install MAUI workload
72
- workingDirectory: $(Build.SourcesDirectory)
73
-
74
60
- script : $(Build.SourcesDirectory)/eng/testing/performance/create-provisioning-profile.sh
75
61
displayName : Create iOS code signing and provisioning profile
76
62
@@ -84,10 +70,33 @@ steps:
84
70
- script : |
85
71
set -x
86
72
pwd
87
- git clone https://github.com/dotnet/performance.git --depth 1 -b ${{parameters.perfRepo }} --single-branch
73
+ git clone https://github.com/dotnet/performance.git --depth 1 -b ${{parameters.perfBranch }} --single-branch
88
74
displayName: Clone performance
89
75
workingDirectory: $(Build.SourcesDirectory)
90
76
77
+ - script : |
78
+ pwd
79
+ echo '$(Build.SourcesDirectory)/rollback.json'
80
+ export PYTHONPATH=$PYTHONPATH:$(Build.SourcesDirectory)/performance/scripts:$(Build.SourcesDirectory)/performance/src/scenarios
81
+ python -c "import mauisharedpython; roll_dict = mauisharedpython.generate_maui_rollback_dict(); mauisharedpython.dump_dict_to_json_file(roll_dict, '$(Build.SourcesDirectory)/rollback.json')"
82
+ displayName: Generate rollback.json
83
+ workingDirectory: $(Build.SourcesDirectory)/performance/src/scenarios/shared
84
+
85
+ - script : |
86
+ echo '{ }' > ./global.json
87
+ curl -o NuGet.config 'https://raw.githubusercontent.com/dotnet/maui/${{parameters.framework}}/NuGet.config'
88
+ curl -o dotnet-install.sh 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh'
89
+ curl -Lo performance-version-details.xml 'https://raw.githubusercontent.com/dotnet/performance/${{parameters.perfBranch}}/eng/Version.Details.xml'
90
+ version=$(sed -nr 's/[[:space:]]*<Dependency Name="VS.Tools.Net.Core.SDK.Resolver" Version="(.*)"[[:space:]].*/\1/p' ./performance-version-details.xml)
91
+ echo dotnet-version: $version
92
+ chmod -R a+rx .
93
+ ./dotnet-install.sh --version $version --install-dir .
94
+ ./dotnet --info
95
+ ./dotnet workload install maui --from-rollback-file rollback.json --configfile NuGet.config
96
+ ./dotnet workload install android --from-rollback-file rollback.json --configfile NuGet.config
97
+ displayName: Install MAUI workload
98
+ workingDirectory: $(Build.SourcesDirectory)
99
+
91
100
- pwsh : |
92
101
$BenchmarkDotNetVersionCapture = Get-Content .\performance\eng\Versions.props | Select-String -Pattern '<BenchmarkDotNetVersion>(.+?)</BenchmarkDotNetVersion>'
93
102
if ($BenchmarkDotNetVersionCapture.Length -eq 0) {
0 commit comments