Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[android] Internal Android sample build improvements and CoreCLR support #111545

Merged
merged 15 commits into from
Jan 29, 2025

Conversation

ivanpovazan
Copy link
Member

@ivanpovazan ivanpovazan commented Jan 17, 2025

Description

This PR:

CoreCLR support verification

Functional test

Verified on osx-arm64 host that the following build/run commands run a functional test on CoreCLR:

  • Building:
./build.sh clr.runtime+clr.alljits+clr.corelib+clr.nativecorelib+clr.tools+clr.packages+libs -os android -arch arm64 -c Release -cross -bl
  • Running:
./dotnet.sh build -c Release src/tests/FunctionalTests/Android/Device_Emulator/JIT/Android.Device_Emulator.JIT.Test.csproj /p:TargetOS=android /p:TargetArchitecture=arm64 /t:Test /p:RuntimeFlavor=coreclr

HelloAndroid

  • Build/run on a clean checkout:
make BUILD_CONFIG=Release TARGET_ARCH=arm64 RUNTIME_FLAVOR=CoreCLR DEPLOY_AND_RUN=true all -C src/mono/sample/Android

Fixes: #110811
Contributes to: #111745

@ivanpovazan ivanpovazan added NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it labels Jan 17, 2025
@ivanpovazan
Copy link
Member Author

/azp run runtime-android, runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-android, runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-android, runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-android, runtime-androidemulator

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@ivanpovazan ivanpovazan changed the title [WIP][android] Internal Android build improvements [android] Internal Android sample build improvements Jan 19, 2025
@ivanpovazan ivanpovazan added os-android and removed NO-MERGE The PR is not ready for merge yet (see discussion for detailed reasons) NO-REVIEW Experimental/testing PR, do NOT review it labels Jan 19, 2025
@ivanpovazan ivanpovazan added this to the 10.0.0 milestone Jan 19, 2025
@ivanpovazan ivanpovazan marked this pull request as ready for review January 19, 2025 19:21
@ivanpovazan ivanpovazan requested review from jkurdek, steveisok and akoeplinger and removed request for steveisok, akoeplinger and vitek-karas January 19, 2025 19:21
@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Pull request contains merge conflicts.

@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ivanpovazan
Copy link
Member Author

/azp run runtime-extra-platforms

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ivanpovazan ivanpovazan changed the title [android] Internal Android sample build improvements [android] Internal Android sample build improvements and CoreCLR support Jan 29, 2025
Copy link
Member

@matouskozak matouskozak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! I left a few comments on stuff that I wasn't sure about.

@ivanpovazan
Copy link
Member Author

ivanpovazan commented Jan 29, 2025

CI failures are unrelated.

Copy link
Member

@kotlarmilos kotlarmilos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ivanpovazan ivanpovazan merged commit f71255e into dotnet:main Jan 29, 2025
199 of 205 checks passed
@ivanpovazan ivanpovazan deleted the helloandroid branch January 30, 2025 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Android] [MonoAOT] Unify configuration between sample app and CI build
6 participants