chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.59k stars 474 forks source link

GBStudio for Raspberry Pi #1406

Open ReptiIe opened 6 months ago

ReptiIe commented 6 months ago

Is your feature request related to a problem? Please describe. As for now there is no build for RPI, but seems it is possible to make it run ??

Describe the solution you'd like Of course the build for RPI.

Describe alternatives you've considered I try to run other distros on RPI, trying appimage, deb, rpm, windows, even try to turn it via WINE. I think with WINE I had some luck once, but the whole system was working so slow, that... Simply it was impossible to work like that.

Additional context

This topic was around 2022... I understand, time, work, and some issue with GBDK around that time. Well that was in 2022, right now we have 2024, some things had change,

maybe it would be good to reinstall your RPI-OS, have a fresh new Raspberry OS since they made some updates there as well, and maybe... maybe this time you would be able to generate a new version of the software? Or sadly this is not possible anymore?

As I recall, I notice that there was someone (patrickmollohan), said that he made it running the GBStudio 2.0 when it was around that time. Or what he had prepared on that time it is... hmm... "no use anymore" since it is all outdated?

Well I just simply wanted to drop you a message about this, I would like to know if there is any chance for GBStudio to ever get into Raspberry Pi? o(. .o)"

chrismaltby commented 6 months ago

Hi @ReptiIe definitely something I'd still like to see. I actually booted up my PI4 to see where this currently stands (after seeing your email, sorry I haven't responded) and managed to run the application (and it seemed to work quite well) but as GBDK doesn't support ARM Linux you won't be able to build any games.

GBDK is being actively maintained at https://github.com/gbdk-2020/gbdk-2020 so if you'd like to request Raspberry PI support there it might help.

One of the issues is both GB Studio and GBDK create their release builds using GitHub Actions which currently doesn't support Linux ARM runners, it was announced end of last year but there's been silence since then https://github.com/orgs/community/discussions/73040 and without this, while it's likely possible to create a Raspberry PI version it would be a lot of effort to maintain it building each release manually.

ReptiIe commented 6 months ago

@chrismaltby oh, so you did receive my mail, I thought it went to the junk mail 😄 OK. Will try to ask folks over there, but knowing my luck, there won't be any good of it.

So GBStudio works on RPI, but currently is missing the GBDK stuff, ok, so, how this looks like? My guess: you can run the app, you can create the game but you are not able to compile it to make a "rom to play", would that be correct? Or you can test play?

bbbbbr commented 6 months ago

Yes, as Chris mentioned until there is native Github Runner support for Linux ARM runners we at GBDK-2020 are unlikely to produce builds for it.

There does appear to be some activity in the discussion below, but they aren't generally available yet. https://github.com/orgs/community/discussions/19197

ReptiIe commented 6 months ago

@bbbbbr Aaaa... so simply GBStudio is waiting for GBDK, and GBDK is waiting for Github Runner.... And if Github Runners will not do anything about it then... yea, ... idea and features are dead till then.

ReptiIe commented 5 months ago

@chrismaltby @bbbbbr Not sure if you notice this: https://github.blog/changelog/2024-06-03-actions-arm-based-linux-and-windows-runners-are-now-in-public-beta/

Is this is what we are waiting for, or... this is not this yet?

bbbbbr commented 5 months ago

I've been following this and hope we get access to them soon. From what I understand they are only available to some kinds of accounts right now, but maybe changing in a while.

You can choose one of the standard GitHub-hosted runner options or, if you are on the GitHub Team or GitHub Enterprise Cloud plan, you can provision a runner with more cores, or a runner that's powered by a GPU or ARM processor. These machines are referred to as "larger runner." For more information, see "About larger runners."

Arm runners are available to customers on our Team and Enterprise Cloud plans. We expect to begin offering Arm runners for open source and personal accounts by the end of the year.

ReptiIe commented 5 months ago

Scam! (((-=) This is not few accounts (customers on our team and enterprise cloud plans) are I would say rather a small group, a private group I would say rather than PUBLIC.

We expect to begin offering Arm runners for open source and personal accounts by the end of the year.

End od the year... hope so then. Sadly they did not mention what year. Keep up the good job @bbbbbr then!

konsumer commented 3 months ago

I made an example here that runs CI on an emulated pi. It's a bit slower, but it works. You can read more about it here.

I have an example run here that runs uname inside the virtual pi, then copies the output in a file called info.txt and attaches it to the build-artifacts.

We are going to use this on node-raylib to pre-build node-modules for pi.

bbbbbr commented 3 months ago

Thanks for the tip, could be useful in the mean time. I guess we'd need to see how long it would take to build SDCC in the virtual pi and if there were any dependency quirks.

ReptiIe commented 3 weeks ago

@bbbbbr sorry for te tag, hope you are not mad. Did you notice this perhaps?

This: https://github.blog/changelog/2024-09-03-github-actions-arm64-linux-and-windows-runners-are-now-generally-available/

and this: https://github.blog/enterprise-software/ci-cd/streamlining-your-mlops-pipeline-with-github-actions-and-arm64-runners/

There is some update on this news as I see, though sadly have no clue what I was reading here...

bbbbbr commented 3 weeks ago

Thanks - unfortunately "Generally Available" just means they are no longer in beta. They are still classified as "Large Runners" which means a tier that is not available to us.

They are only listed as available under Large Runners here: https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/using-larger-runners/about-larger-runners#specifications-for-general-larger-runners

They would need to be listed here to be available for our (Public, Open Source) use: https://docs.github.com/en/enterprise-cloud@latest/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories

You can also follow this ticket for status changes on that. The original forecast was Nov 2024, but that was made back in May and now is assigned to "Future". https://github.com/github/roadmap/issues/970