From e27f594ea7bc141b4b996130b49004c196726012 Mon Sep 17 00:00:00 2001 From: Parker Bibus Date: Fri, 25 Feb 2022 17:02:46 -0600 Subject: [PATCH] [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. --- eng/pipelines/coreclr/templates/build-perf-maui-apps.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml b/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml index 7cabb801e9fe3..bad728f25057e 100644 --- a/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml +++ b/eng/pipelines/coreclr/templates/build-perf-maui-apps.yml @@ -137,8 +137,10 @@ steps: - script: | chmod -R a+r . - ../dotnet publish -bl:MauiAndroid.binlog -f net6.0-android -c Release - mv ./bin/Release/net6.0-android/com.companyname.MauiTesting-Signed.apk ./MauiAndroidDefault.apk + # Restore is split out because of https://github.com/dotnet/sdk/issues/21877, can be removed with --no-restore once fixed + ../dotnet restore + ../dotnet publish -bl:MauiAndroid.binlog -f net6.0-android -c Release -r android-arm64 --no-restore --self-contained + mv ./bin/Release/net6.0-android/android-arm64/com.companyname.mauitesting-Signed.apk ./MauiAndroidDefault.apk displayName: Build MAUI Android workingDirectory: $(Build.SourcesDirectory)/MauiTesting