lazerwalker / GroundKontrol

Tune your Unity game's constants using a Korg MIDI controller

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up CI build

lazerwalker opened this issue · comments

Until I have tests, this is basically just "does the sample project compile?"

This would be awesome!

In my recent experience it's a bit of a pain to do Unity editor builds on most free / docker-based providers. The state of the art from the last time I did an iteration on this is the approach at https://gitlab.com/gableroux/unity3d-gitlab-ci-example -- there we eventually found a likely working approach but for my project I had to bail since we needed to make OS X builds. For something that can build and run on Linux (or possibly even Windows), that approach is definitely worth looking at, possibly more consistent than alternatives.

The nuclear option I've had good luck with is running an actual machine or VM, logging in to a Unity account while VNC'd into it, & then just running gitlab-runner on the machine and configuring a .gitlab-ci.yml that calls the right Unity build commands and whatever else you want a CI system to do (in our case, deploy multiplayer servers, push a beta branch build to Steam, notify livestream watchers on Discord and such).

The big risk with all of the approaches is periodically losing your editor authentication and having to do some manual step to fix the build. Only happens once a year or so for us, not sure about the Docker case.

Maybe someday we'll get to where we can run and test OS-level MIDI data to a running .exe. :D Wouldn't that be nice! There are also some companies working towards making this easier but haven't seen anything pan out for Unity yet.