Skip to content

Commit

Permalink
[Perf][Maui] Set only android-arm64 to be built for Maui (#65747)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
LoopedBard3 authored Feb 25, 2022
1 parent 828f6d7 commit e27f594
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eng/pipelines/coreclr/templates/build-perf-maui-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e27f594

Please sign in to comment.