NagyD / SDLPoP

An open-source port of Prince of Persia, based on the disassembly of the DOS version.
GNU General Public License v3.0
1.1k stars 141 forks source link

Add Github Action Build Script #219

Closed Ryzee119 closed 3 years ago

Ryzee119 commented 4 years ago

This PR adds a Github Actions script to automatically compile binaries (Windows and Linux) for new changes to master.

It does the following:

  1. For each new PR to master, it will compile a Linux and Windows binary in the background to confirm no compilation/syntax errors are introduced.
  2. For each new push to master, it will upload the Linux and Windows binaries as a zipped 'Artifact', viewable under the 'Actions' tab. (Users must be logged into github to download Artifacts). Output filenames are timestamped.

Compilation for all cases is performed using cmake to generate the makefile.

It does not publish binaries to 'Releases'. Historically it looks like that has been done manually (probably after alot of testing to confirm it is stable). Although this can be changed.

Example output artifacts (These are zip files): image

Example outputs/build logs etc can be seen in my fork (Built from current master), https://github.com/Ryzee119/SDLPoPX/actions/runs/219189949

I have not created a build status badge for the readme, but this can be done in a follow up PR.

Ryzee119 commented 3 years ago

Closing this one. No action for long time. Assuming not required by maintainer :)