-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
action not working on self hosted M1 machine #239
Comments
If you want to try with the latest version in canary channel, add Not sure I can help with self-hosted / M1 issue so let's see if anyone else can chime in. |
Looks like the canary channel worked. Thanks for that recommendation 🙏 Another issue that I had to resolve was adding the ANDROID_SDK_ROOT as an environment variable to the self hosted machine, and the app built fine after that. For anyone else that has an m1, my runner uses these arguments:
|
Good to know it works. Using canary can mean your build is more likely to fail when Google pushes a new version with bugs/issues. I'm planning to work on #226 to support pinning emulator and system image by using the semantic version of the release (replacing emulator-build), so you can more easily pin to a version that works for you and upgrade at your own pace. |
@safa007 I'm missing the How did you solve this for an M1 machine? Currently I have set it locally:
|
@sebastianbuechler use the |
@safa007 Thanks for that hint! I now encountered another issue with m1. Have you ever seen this error?
It seems like the AVD's arch is somehow x86 but that's not compatible with arm? My workflow file currently looks like this, can you spot anything wrong regarding the arch selections?
|
@sebastianbuechler I had to specify the canary channel when running with x64 architecture on M1s. Here's the setup that works for me.
|
@safa007 Thanks, but it still seems to have issues, even with canary:
Do you have any other clues? |
I also have issues with running instrumentation tests on our self-hosted M1. I install the android sdk using android-actions/setup-android as mentioned in previous comments. Then, my workflow looks like this:
And I can see in the output that
I notice that I install an emulator with |
Are you sure |
@sebastianbuechler I get the exact same output even though I'm asking for an API 29 ARM64-v8a image. Did you manage to fix or find the root cause of this issue? |
Answering my own question from above. To fix:
I had to start setting a custom |
☝️ Setting |
Specifying the |
I'm curious if anyone has gotten this action to work with a self hosted m1 machine and arm64 emulator. I've been having a bunch of issues trying to get it to work.
My first issue is that when I try to run the action with
api-level: 29
andarch: arm64-v8a
without an emulator build, it gives me this error.and the emulator hangs forever and doesn't start.
So, I added
emulator-build: 8316981
to the args (emulator build 31.2.9) because I saw the error about the emulator needing to be updated. Which confuses me, because doesn't the action already use the latest emulator build? Well, now I'm getting a different error:and the emulator continues to hang.
I tracked the issue down here https://issuetracker.google.com/issues/226921798 and it seems like google is aware of that bug and will fix it in the next release. My question is, shouldn't the emulator launch regardless of this error? Or do I need to re-launch the emulator manually somehow?
I'm mainly posting this for visibility, but also to see if anyone has had success in running this action on a self hosted m1 machine. Any tips would be greatly appreciated.
The text was updated successfully, but these errors were encountered: