Jump to content

Github Actions CI/CD


Riesi
 Share

Recommended Posts

Hello!

I wanted to setup Github actions, so that I can can get Windows builds without touching the OS. Main reason being that a friend had issues with the latest automated build and I wanted to try fixing things maybe.
I initially tried building 0ad in my VM and after that I hacked together a Github action for it. Due Github maybe limiting the total data size of artifacts, I also made an action that auto deletes older artifacts. I am not sure if this is really needed.


You can find the repo here:
https://github.com/Riesi/0ad_builder


For anyone curious about the code:
https://github.com/0ad/0ad/compare/master...Riesi:0ad_builder:master

Built artifact of the binaries/system folder with the EXEs stripped from the PDB files here (only 15min of build time!):
https://github.com/Riesi/0ad_builder/actions/runs/6468547522

Now my main question is, if such a Github action would be wanted or useful for upstream 0ad? I am not sure if only the "binaries/system" folder needs to be dropped into a recent git clone, but bundling more stuff into the artifact would be easy.
For what its worth one could maybe even create a script that pulls the latest git master and inserts the latest artifact into it.
Additionally maybe one could setup a build process for Linux/MacOS.

Kind regards,
Riesi

Edited by Riesi
Link to comment
Share on other sites

Hi!

4 hours ago, Riesi said:

Main reason being that a friend had issues with the latest automated build and I wanted to try fixing things maybe.

What were the issues?

4 hours ago, Riesi said:

Now my main question is, if such a Github action would be wanted or useful for upstream 0ad?

We don't plan to have the main repo on github, so adding its actions isn't in our priority (especially its support). Currently our goal is to decide and perform (if finally decided) the transition from svn to git (on our server). After that we might want to setup similar actions on our server. Currently we have autobuild for Windows, and for Linux/macOS we automatically build releases and RC. We have thoughts about nightly/weekly builds for all platforms. But we're really limited in free hands (for creating and reviewing), so it's not going to happen soon.

Also you might take a look at @andy5995 appimage work: https://github.com/0ad-matters/0ad-appimage

Link to comment
Share on other sites

2 hours ago, vladislavbelov said:

What were the issues?

Found the reason. It was a crash at launch due to an outdated version or missing SPIRV mod. Kinda annoying. I guess there are plans to include the shaders when 0.27 finally hits.

Okey then I see my journey with Github Actions as concluded for now. :)

Nightly/Weekly builds for everyone would be very cool!

Yeah I understand that the workforce is already limited, so new features takes time. Still the quality and amount of content of 0ad is really great!

 

Thanks for the answers.

  • Like 1
Link to comment
Share on other sites

1 hour ago, Riesi said:

I guess there are plans to include the shaders when 0.27 finally hits.

Yeah, we include those shaders in release and release candidate builds.

1 hour ago, Riesi said:

Yeah I understand that the workforce is already limited, so new features takes time. Still the quality and amount of content of 0ad is really great!

 

Thanks for the answers.

Thank you for the feedback!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...