@@ -8,90 +8,89 @@ parameters:
8
8
provisionatorChannel : ' latest'
9
9
agentPoolAccessToken : ' '
10
10
skipProvisioning : true
11
- configuration : " Release"
11
+ configuration : " Release"
12
12
testFilter : ' '
13
13
runtimeVariant : ' Mono'
14
14
15
15
steps :
16
- - ${{ if eq(parameters.platform, 'ios')}} :
17
- - bash : |
18
- chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
19
- $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
20
- displayName: 'Clean bot'
21
- continueOnError: true
22
- timeoutInMinutes: 60
23
-
24
- - template : provision.yml
25
- parameters :
26
- # FIXME: 'Build the MSBuild Tasks' step fails for net9.0-android35 without API 35
27
- skipAndroidSdks : false
28
- skipXcode : ${{ or(eq(parameters.platform, 'android'), eq(parameters.platform, 'windows')) }}
29
- provisionatorChannel : ${{ parameters.provisionatorChannel }}
30
- ${{ if parameters.skipProvisioning }} :
31
- skipProvisionator : true
32
- ${{ else }} :
33
- skipProvisionator : false
34
- gitHubToken : $(github--pat--vs-mobiletools-engineering-service2)
35
-
36
- - task : PowerShell@2
37
- condition : ne('${{ parameters.platform }}' , 'windows')
38
- inputs :
39
- targetType : ' inline'
40
- script : |
41
- defaults write -g NSAutomaticCapitalizationEnabled -bool false
42
- defaults write -g NSAutomaticTextCompletionEnabled -bool false
43
- defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
44
- displayName : " Modify defaults"
16
+ - ${{ if eq(parameters.platform, 'ios')}} :
17
+ - bash : |
18
+ chmod +x $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
19
+ $(System.DefaultWorkingDirectory)/eng/scripts/clean-bot.sh
20
+ displayName: 'Clean bot'
45
21
continueOnError: true
22
+ timeoutInMinutes: 60
46
23
47
- - pwsh : ./build.ps1 --target=dotnet --configuration="${{ parameters.configuration }}" --verbosity=diagnostic
48
- displayName : ' Install .NET'
49
- retryCountOnTaskFailure : 2
50
- env :
51
- DOTNET_TOKEN : $(dotnetbuilds-internal-container-read-token)
52
- PRIVATE_BUILD : $(PrivateBuild)
24
+ - template : provision.yml
25
+ parameters :
26
+ # FIXME: 'Build the MSBuild Tasks' step fails for net9.0-android35 without API 35
27
+ skipAndroidSdks : false
28
+ skipXcode : ${{ or(eq(parameters.platform, 'android'), eq(parameters.platform, 'windows')) }}
29
+ provisionatorChannel : ${{ parameters.provisionatorChannel }}
30
+ ${{ if parameters.skipProvisioning }} :
31
+ skipProvisionator : true
32
+ ${{ else }} :
33
+ skipProvisionator : false
53
34
54
- - pwsh : echo "##vso[task.prependpath]$(DotNet.Dir)"
55
- displayName : ' Add .NET to PATH'
35
+ - task : PowerShell@2
36
+ condition : ne('${{ parameters.platform }}' , 'windows')
37
+ inputs :
38
+ targetType : ' inline'
39
+ script : |
40
+ defaults write -g NSAutomaticCapitalizationEnabled -bool false
41
+ defaults write -g NSAutomaticTextCompletionEnabled -bool false
42
+ defaults write -g NSAutomaticSpellingCorrectionEnabled -bool false
43
+ displayName : " Modify defaults"
44
+ continueOnError : true
56
45
57
- - pwsh : |
58
- Get-Content $PSCommandPath
59
- ./build.ps1 --target=uitests-apphost --configuration="${{ parameters.configuration }}" --${{ parameters.platform }} --verbosity=diagnostic --usenuget=false --runtimevariant="${{ parameters.runtimeVariant }}"
60
- displayName: 'Build the samples'
46
+ - pwsh : ./build.ps1 --target=dotnet --configuration="${{ parameters.configuration }}" --verbosity=diagnostic
47
+ displayName : ' Install .NET'
48
+ retryCountOnTaskFailure : 2
49
+ env :
50
+ DOTNET_TOKEN : $(dotnetbuilds-internal-container-read-token)
51
+ PRIVATE_BUILD : $(PrivateBuild)
61
52
62
- - bash : |
63
- if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
64
- if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
65
- displayName: Delete Old Simulator Logs
66
- condition: ${{ eq(parameters.platform, 'ios') }}
67
- continueOnError: true
53
+ - pwsh : echo "##vso[task.prependpath]$(DotNet.Dir)"
54
+ displayName : ' Add .NET to PATH'
55
+
56
+ - pwsh : |
57
+ Get-Content $PSCommandPath
58
+ ./build.ps1 --target=uitests-apphost --configuration="${{ parameters.configuration }}" --${{ parameters.platform }} --verbosity=diagnostic --usenuget=false --runtimevariant="${{ parameters.runtimeVariant }}"
59
+ displayName : ' Build the samples'
60
+
61
+ - bash : |
62
+ if [ -f "$HOME/Library/Logs/CoreSimulator/*" ]; then rm -r $HOME/Library/Logs/CoreSimulator/*; fi
63
+ if [ -f "$HOME/Library/Logs/DiagnosticReports/*" ]; then rm -r $HOME/Library/Logs/DiagnosticReports/*; fi
64
+ displayName : Delete Old Simulator Logs
65
+ condition : ${{ eq(parameters.platform, 'ios') }}
66
+ continueOnError : true
67
+
68
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
69
+ condition : and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
70
+ artifact : ui-tests-samples
68
71
69
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
70
- condition : and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
71
- artifact : ui-tests-samples
72
-
73
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
74
- condition : and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
75
- artifact : ui-tests-samples-nativeaot
72
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
73
+ condition : and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), succeeded())
74
+ artifact : ui-tests-samples-nativeaot
76
75
77
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
78
- condition : and(eq('${{ parameters.platform }}' , 'windows'), succeeded())
79
- artifact : ui-tests-samples-windows
76
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
77
+ condition : and(eq('${{ parameters.platform }}' , 'windows'), succeeded())
78
+ artifact : ui-tests-samples-windows
80
79
81
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
82
- condition : and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
83
- artifact : ui-tests-samples_failed_$(System.JobAttempt)
80
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
81
+ condition : and(ne('${{ parameters.platform }}' , 'windows'), ne('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
82
+ artifact : ui-tests-samples_failed_$(System.JobAttempt)
84
83
85
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
86
- condition : and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
87
- artifact : ui-tests-samples-nativeaot_failed_$(System.JobAttempt)
84
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
85
+ condition : and(ne('${{ parameters.platform }}' , 'windows'), eq('${{ parameters.runtimeVariant }}' , 'NativeAOT'), failed())
86
+ artifact : ui-tests-samples-nativeaot_failed_$(System.JobAttempt)
88
87
89
- - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
90
- condition : and(eq('${{ parameters.platform }}' , 'windows'), failed())
91
- artifact : ui-tests-samples-windows_failed_$(System.JobAttempt)
88
+ - publish : $(System.DefaultWorkingDirectory)/artifacts/bin
89
+ condition : and(eq('${{ parameters.platform }}' , 'windows'), failed())
90
+ artifact : ui-tests-samples-windows_failed_$(System.JobAttempt)
92
91
93
- - task : PublishBuildArtifacts@1
94
- displayName : Publish Artifacts
95
- condition : always()
96
- inputs :
97
- artifactName : ' $(Agent.JobName) (attempt $(System.JobAttempt))'
92
+ - task : PublishBuildArtifacts@1
93
+ displayName : Publish Artifacts
94
+ condition : always()
95
+ inputs :
96
+ artifactName : ' $(Agent.JobName) (attempt $(System.JobAttempt))'
0 commit comments