View Single Post
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-19-2021 , 01:54   Re: Compiling source code through GitHub
Reply With Quote #3

So, I just got something working with GitHub actions. I created a test repo with a GitHub workflow that calls a sequence of commands/actions to compile the test plugin when you push to GitHub. The "workflow" is defined .github/workflows/main.yml.

If the plugin compiles successfully, the commit will go green. If the plugin fails to compile the commit will go red.

It does not (yet) give you access to the compiled plugin but in theory it should be possible to publish the compiled plugin as a release. Also, as it's configured, it does not grab any mod-specific files but that should be quite easy to add.

I haven't tested with custom include files but I think it should work as long as they are properly in the scripting/include folder.
__________________

Last edited by fysiks; 06-19-2021 at 23:32.
fysiks is offline