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

Using 0.1.4 on Apple Silicon M1 crashes [temporary solved] #70

Open
hannesa2 opened this issue Jul 22, 2022 · 6 comments
Open

Using 0.1.4 on Apple Silicon M1 crashes [temporary solved] #70

hannesa2 opened this issue Jul 22, 2022 · 6 comments

Comments

@hannesa2
Copy link
Contributor

Thanks to 0.1.3 I come one step closer to run on Apple Silicon M1, but now it crashes
https://github.com/hannesa2/CVScanner/runs/7462427093?check_suite_focus=true

with this pull request https://github.com/hannesa2/CVScanner/pull/225/files

image

Any idea ?

@hannesa2 hannesa2 changed the title Using 0.1.3 on Apple Silicon M1 crashes Using 0.1.4 on Apple Silicon M1 crashes Apr 11, 2023
@hannesa2
Copy link
Contributor Author

Now I use 0.1.4 and I see here https://github.com/hannesa2/CVScanner/actions/runs/4664538312/jobs/8256885338
this
image

@Malinskiy
Copy link
Owner

FYI, this action is not for self-hosted setups and clearly states the desired runner to be x86. M1 is not supported by public GH runners, when this public support will land github/roadmap#528 (around Q4 2023 at this moment) then I might be able to verify what's happening with M1.

@hannesa2
Copy link
Contributor Author

Ok, Ive to accept your point of view.
Just to let you know: On my custom M1 runner I see

/Users/hannes/android-sdk/cmdline-tools/bootstrap-version/bin/sdkmanager --version
3.0 

It shows me an old version. It looks like you use an outdated version.
Local, on my M1 I see 10.0-beta04

@hannesa2
Copy link
Contributor Author

hannesa2 commented Apr 25, 2023

I see you use 3.0 from here

defaultSdkUrl = "https://dl.google.com/android/repository/commandlinetools-mac-6858069_latest.zip"

I guess it's a version from pre-M1-release.

Btw, the recent version to download is
https://dl.google.com/android/repository/commandlinetools-mac-9477386_latest.zip
image

This was referenced Apr 25, 2023
@hannesa2
Copy link
Contributor Author

hannesa2 commented Apr 27, 2023

YES !
I made it work to have a build with Android emulator on an Apple silicon M1 runner 🎉
hannesa2/paho.mqtt.android#449 or
https://github.com/hannesa2/CVScanner/actions/runs/4818113303/jobs/8579658690
Simply use

      - name: Install Android SDK
        uses: hannesa2/action-android/[email protected]

instead of

      - name: Install Android SDK
        uses: malinskiy/action-android/emulator-run-cmd@release/0.1.4

Now I've super fast espresso tests, please keep your attention on run time

image

image

@hannesa2
Copy link
Contributor Author

hannesa2 commented Apr 27, 2023

Btw, now I've a full automated release pipeline, with auto generated changelog (when you make pull requests)
https://github.com/hannesa2/action-android/blob/master/.github/workflows/release-linux.yml

@hannesa2 hannesa2 changed the title Using 0.1.4 on Apple Silicon M1 crashes Using 0.1.4 on Apple Silicon M1 crashes [temporary solved] Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants