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

[Support Mobile] #57

Open
Milerius opened this issue Jul 18, 2021 · 10 comments
Open

[Support Mobile] #57

Milerius opened this issue Jul 18, 2021 · 10 comments

Comments

@Milerius
Copy link

I successfully managed to use your actions for Wasm + Desktop, but for mobile i'm using a custom one with your github asset uploader:

https://github.com/Milerius/mm2-client/blob/main/.github/workflows/mobile_release.yml

Would be nice to upgrade your actions to use MacOS instead of Linux so you could enjoy mobile Ios+Android development

@wangyoucao577
Copy link
Owner

Unfortunately there's no docker technology for macos at all. However, building for mobile is just cross-compile. It supposed to be worked on Linux as well. Have you tried it?

@Milerius
Copy link
Author

Unfortunately there's no docker technology for macos at all. However, building for mobile is just cross-compile. It supposed to be worked on Linux as well. Have you tried it?

iOS compilation require xcode :/

@wangyoucao577
Copy link
Owner

Oh! I have never tried Go for mobile. So there's no way to do it for iOS technically at the moment. For android, I think it's achievable, however, it may require NDK, right? Put it in docker will result very big image. The way you implement it looks very good since Github Actions hosted Runner have installed it already.

@wangyoucao577
Copy link
Owner

One more question for curious, how's the Go on mobile? Is there any problems or limitations that difficult to solve?

@Milerius
Copy link
Author

Milerius commented Jul 20, 2021

One more question for curious, how's the Go on mobile? Is there any problems or limitations that difficult to solve?

As you can see in my actions release it's quite easy to setup, there is a bit of limitation such as atomic alignment: kpango/fastime#42 https://pkg.go.dev/sync/atomic#pkg-note-BUG

But other than that im quite happy with my project: https://github.com/Milerius/mm2-client

Able to run on ios,android,wasm & desktop with the same codebase, (be carefull about package you use, for example gorilla/websocket doesn't support wasm, but other package support it)

https://github.com/Milerius/mm2-client/releases all platform are released at each commit here

@Milerius
Copy link
Author

Oh! I have never tried Go for mobile. So there's no way to do it for iOS technically at the moment. For android, I think it's achievable, however, it may require NDK, right? Put it in docker will result very big image. The way you implement it looks very good since Github Actions hosted Runner have installed it already.

I'm quite sure Docker work's really well on MacOS actually, you may want to try it: https://github.com/sickcodes/Docker-OSX

@wangyoucao577
Copy link
Owner

It looks great! I haven't noticed that there's macosx based docker already. I'll spend some time to take a look in detail. Thanks!

@Milerius
Copy link
Author

It looks great! I haven't noticed that there's macosx based docker already. I'll spend some time to take a look in detail. Thanks!

And i'm also sure that it's will be a great improvement for your action to support also mobile so i'm looking forward :)

@wangyoucao577
Copy link
Owner

@Milerius Bad news: the https://github.com/sickcodes/Docker-OSX requires hardware virualization support, which doesn't support at the moment on github hosted runners, see actions/runner-images#183 (comment).

@Milerius
Copy link
Author

Milerius commented Aug 2, 2021

@Milerius Bad news: the https://github.com/sickcodes/Docker-OSX requires hardware virualization support, which doesn't support at the moment on github hosted runners, see actions/virtual-environments#183 (comment).

Oh that's a bit sad 😭

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