Skip to content

Commit e27f594

Browse files
authored
[Perf][Maui] Set only android-arm64 to be built for Maui (#65747)
* Set android to only build one RID (android-arm64). * Update the mv file path for the android apk. * Add --self-contained to get rid of android build warning. * Add comment about dotnet restore being done before publish.
1 parent 828f6d7 commit e27f594

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

eng/pipelines/coreclr/templates/build-perf-maui-apps.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,10 @@ steps:
137137
138138
- script: |
139139
chmod -R a+r .
140-
../dotnet publish -bl:MauiAndroid.binlog -f net6.0-android -c Release
141-
mv ./bin/Release/net6.0-android/com.companyname.MauiTesting-Signed.apk ./MauiAndroidDefault.apk
140+
# Restore is split out because of https://github.com/dotnet/sdk/issues/21877, can be removed with --no-restore once fixed
141+
../dotnet restore
142+
../dotnet publish -bl:MauiAndroid.binlog -f net6.0-android -c Release -r android-arm64 --no-restore --self-contained
143+
mv ./bin/Release/net6.0-android/android-arm64/com.companyname.mauitesting-Signed.apk ./MauiAndroidDefault.apk
142144
displayName: Build MAUI Android
143145
workingDirectory: $(Build.SourcesDirectory)/MauiTesting
144146

0 commit comments

Comments
 (0)