question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

action not working on self hosted M1 machine

See original GitHub issue

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 and arch: arm64-v8a without an emulator build, it gives me this error.

WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
  ERROR   | Unable to connect to adb daemon on port: 5037
  WARNING | cannot add library /Users/administrator/code/actions-runner/_work/marvin/marvin/undefined/emulator/qemu/darwin-aarch64/lib64/vulkan/libvulkan.dylib: failed
  ERROR   | EglOsGlLibrary: Could not open GL library libGLESv2.dylib [dlopen(libGLESv2.dylib, 0x0002): tried: '/Users/administrator/code/actions-runner/_work/marvin/marvin/undefined/emulator/lib64/gles_swiftshader/libGLESv2.dylib' (code signature in <B48F2D27-E9C4-30EF-A948-CB28819733C9> '/Users/administrator/code/actions-r]
  ERROR   | EglOsEglDispatcher: Could not open EGL library libEGL.dylib [dlopen(libEGL.dylib, 0x0002): tried: '/Users/administrator/code/actions-runner/_work/marvin/marvin/undefined/emulator/lib64/gles_swiftshader/libEGL.dylib' (code signature in <5C3ABCC5-722A-3AEA-AF5B-6CEEFF8D1074> '/Users/administrator/code/actions-runner/]

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:

emulator: ERROR: process is translated under Rosetta. Attempting to replace emulator installation.
  emulator: Replacing via command: /Users/administrator/code/actions-runner/_work/marvin/marvin/undefined/emulator/darwin-aarch64-replace.sh (downloading ~120 MB)...
  sh: /Users/administrator/code/actions-runner/_work/marvin/marvin/undefined/emulator/darwin-aarch64-replace.sh: No such file or directory
  emulator: Replacement done. Please relaunch the emulator. You will also need to be using an Apple Silicon-compatible system image. Check the release updates blog (https://androidstudio.googleblog.com/) for more details.

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.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ychescale9commented, Oct 4, 2022

Are you sure default target is available with api 31? You might need to use google_apis or playstore instead.

1reaction
safa007commented, Aug 16, 2022

@sebastianbuechler use the android-actions/setup-android to install SDK tools, it’ll automatically set the ANDROID_SDK_ROOT for you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add ARM + MacOS target to be able to use on self-hosted ...
Describe the enhancement A new architecture+OS build target to enable adding runners on the new Apple Silicon (ARM) Macs.
Read more >
Self-hosted runners now support Apple M1 hardware
Actions runner support for Apple silicon hardware, such as the M1 chip, is now generally available. This provides teams with the capability to ......
Read more >
Run GitHub Actions Self-hosted macOS ... - Better Programming
For those who are using GitHub actions, in this post, we will walk through the process of using an M1-based machine for GitHub...
Read more >
How we streamlined Apple M1 Support with self-hosted ...
We ended up setting up a self-hosted GitHub Actions runner, on a hosted Mac M1. Getting the machine itself up and running was...
Read more >
Setup GitHub Actions Runner on M1 Mac - Paul Peelen
Getting the full potential of your self-hosted GitHub Actions runner while being on an M1 machine.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found