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

Moonshot: Add Android Termux support #22

Open
Slackadays opened this issue Feb 5, 2023 · 3 comments
Open

Moonshot: Add Android Termux support #22

Slackadays opened this issue Feb 5, 2023 · 3 comments
Labels
enhancement New feature or request operating system Request for supporting a new operating system

Comments

@Slackadays
Copy link
Contributor

Slackadays commented Feb 5, 2023

It turns out that there is no single easy way to compile Android apps in Termux in GHA*. However, it's possible to have an Android VM and a Termux SSH session. This should fit well into CPA if it's possible to have such a setup. Having the ability to have an Android action would let me have nightly builds for Clipboard to verify Android compatibility.

*excluding the possibility of a self hosted runner on some Android box
Edit: Looks like GHA requires .net Core, so self hosted on Termux is currently out until termux/termux-packages#516 is satisfied. One alternative would be to have a regular GH Action SSH into the runner server and run the command there, so maybe that would be more viable for you to implement here?

Double edit: Self hosted has nothing to do with CPA

@jacob-carlborg jacob-carlborg added the enhancement New feature or request label Feb 5, 2023
@Slackadays
Copy link
Contributor Author

I just realized that there's another potential CPA to add here. It would be a "generic" action that runs on either the standard GHA runners or a self-hosted one. However, whatever you tell this generic action to do will execute on a different system that's accessed through SSH. That way you could theoretically have CPA for any system as long as it supports SSH.

@jacob-carlborg
Copy link
Contributor

It turns out that there is no single easy way to compile Android apps in Termux in GHA*. However, it's possible to have an Android VM and a Termux SSH session.

Let me see if I understand this correctly. There should be a VM running Android. In that VM Termux should be installed and running. Any commands specified in the action should be executed inside Termux. Is that correct?

@jacob-carlborg
Copy link
Contributor

I just realized that there's another potential CPA to add here. It would be a "generic" action that runs on either the standard GHA runners or a self-hosted one. However, whatever you tell this generic action to do will execute on a different system that's accessed through SSH. That way you could theoretically have CPA for any system as long as it supports SSH.

Hmm, I think this is out of scope of CPA. Even though CPA uses SSH to communicate with the VM I consider this an implementation detail. To me it sounds like one would need a completely different API for the action.

Perhaps this is better discussed in the Discussions section.

@jacob-carlborg jacob-carlborg added the operating system Request for supporting a new operating system label Feb 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request operating system Request for supporting a new operating system
Projects
None yet
Development

No branches or pull requests

2 participants