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

[WIP] Add GitHub Actions workflow to build releases #183

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pR0Ps
Copy link

@pR0Ps pR0Ps commented Oct 18, 2020

Will automatically build and release versions when tags like 'x.x.x' are pushed. Can also be run manually to produce a build artifact.

Note that the build process is a bit hacky:

  • It uses the Ubuntu image provided by GitHub, but adds the Debian bullseye repo in order to get more recent packages.
  • It edits some of the files that cmake generates so that the host's qt system's moc and rcc build tools are used instead of the mingw-provided ones (which are win32 executables).
  • It builds and installs pacman so it can use it to download and install the required mingw packages.

Links to results:

@pR0Ps
Copy link
Author

pR0Ps commented Oct 18, 2020

Currently there is an issue where invader-edit-qt.exe won't run due to a library error.

error

@SnowyMouse I'll leave it up to you how you want to proceed with this.

I've tried a bunch of things and couldn't figure out how to make it work. My hope is that this PR can serve as a starting point for someone more well-versed in building this project than me.

Some options:

  1. Fix the build. It's entirely possible that I've done this entirely wrong and the solution is obvious to someone more knowledgeable than me.
  2. Since this project builds easily and without error on Arch Linux you could run a self-hosted GitHub runner on Arch and have it do the build instead of using GitHub's Ubuntu image on their infrastructure.

@pR0Ps pR0Ps force-pushed the master branch 2 times, most recently from c8f972d to 7237737 Compare October 18, 2020 17:37
Will automatically build and release versions when tags like 'x.x.x' are
pushed. Can also be run manually to produce a build artifact.

Note that the build is a bit hacky:
 - It uses the Ubuntu image provided by GitHub, but adds the Debian
   bullseye repo in order to get more recent packages.
 - It edits some of the files that `cmake` generates so that the host's
   `qt` system's `moc` and `rcc` build tools are used instead of the
   mingw-provided ones (which are win32 executables).
 - It builds and installs `pacman` so it can use it to download and
   install the required mingw packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant