Build for Linux and Windows in GitHub CI #422
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add a GitHub Actions workflow to build for Linux and Windows, publish tarballs as workflow artifacts.
x64arm64x64arm64x64(UCRT)arm64(UCRT)x64arm64For Windows, I have picked the
CLANG64andCLANGARM64msys2 environments (Windows 10+) instead ofMINGW64, to use the newerUCRTC runtime instead of the olderMSVCRTruntime (unavailable to build for ARM).I have also added a disabled build workflow for the new Steam Linux Runtime 4.0, both for
x64andarm64.It uses
sdl2-compatto effectively run SDL2 apps on SDL3 and it doesn't pickSDL2_ttfright now. I have a working fix but I have not tested it extensively enough (weird failure in some cases).I successfully tested the Ubuntu build in Distrobox, the Fedora build natively, and the Windows build with Wine. ARM builds are untested outside of the CI step that run them with
--version.I improved the build documentation by switching it to Markdown and adding command lines to install dependencies on Ubuntu and Fedora. Also fixed some broken links (there are still a few with no clear replacements).
Leverages official GitHub Actions runners:
You can check the build logs and results here: AFCMS#1
What is still missing from the pipeline:
I consider this PR ready for review.