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

Can we mimic Godot build scripts to build all platforms support? #41

Open
clemens-tolboom opened this issue Jan 25, 2021 · 7 comments
Open
Labels
build-release Related to the build and release pipeline. enhancement New feature or request

Comments

@clemens-tolboom
Copy link
Contributor

Maybe this helps https://github.com/godotengine/godot-build-scripts ?

Godot CI is using this to test every PR generating builds in https://github.com/godotengine/godot/actions .. ie https://github.com/godotengine/godot/actions/runs/507761636 has build artifacts ... not sure as I haven't tried myself yet.

@clemens-tolboom
Copy link
Contributor Author

clemens-tolboom commented Jan 25, 2021

It looks cool but is it doable? https://github.com/godotengine/build-containers/blob/master/build.sh is a good starting point for contemplating.

@kb173
Copy link
Member

kb173 commented Jan 25, 2021

I have some experience setting this up for Linux, that should be fairly easy. I think I'll try that sometime soon, and once that is done we can go on to other OSs 👍

@kb173
Copy link
Member

kb173 commented Jan 27, 2021

I setup a GitHub Action for automatic Linux builds in d20abee!

We could use the artifacts of this for automated releases. Unfortunately it's quite slow because it regenerates the CPP bindings every time - it'd be nice to find a way to cache those.

@kb173 kb173 added enhancement New feature or request build-release Related to the build and release pipeline. labels Jan 28, 2021
@clemens-tolboom
Copy link
Contributor Author

clemens-tolboom commented Feb 3, 2021

@kb173
Copy link
Member

kb173 commented Feb 6, 2021

A GitHub Action for building on Mac OS was added in c395052 and seems to work!

Only Windows left - I restructured that build to use MinGW instead of MSVC, that way we can cross-compile from Linux which is much more comfortable. However, we need Fedora for that build since its package repository provides direct access to MinGW GDAL builds and all its dependencies. GitHub doesn't offer Fedora for actions, so we'll likely want to use a minimal Docker container for that, similarly to how Godot does it.

@kb173
Copy link
Member

kb173 commented Feb 11, 2021

All platforms now have functional GitHub Actions for compilation!

What we need to do now is figure out packaging and publish the build artifacts accordingly. That means this issue is blocked until #42 is done.

@kb173
Copy link
Member

kb173 commented Feb 16, 2021

#60 publishes the build artifacts in the GitHub Action tab. For the asset store, we'll want to push them to a GitHub repo - either to this one, or to a new one with only the binaries relevant for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-release Related to the build and release pipeline. enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants