chore: update CI to build multi-arch binaries#4
Merged
cowboyd merged 1 commit intothefrontside:mainfrom Mar 27, 2025
Merged
Conversation
Member
|
Thank you so much @LionyxML! I haven't had a chance to give it a proper look yet, but one question that did occur to me was how we can handle code-signing the binaries on MacOS and Windows. I have had problems with precompiled executables on those platforms before, and it makes me wonder what is the common practice to either a) do those things or b) circumvent them. |
Member
|
Well done! 🎉 |
Member
|
@LionyxML I completely missed that this removed publication to JSR. Was that intentional? |
Contributor
Author
|
Oh dang, that was completely unintentional :/ I might've grep/replaced something while testing it. Sorry. |
Member
|
@LionyxML No worries, I just wanted to make sure there wasn't a reason not to add it back. Thank you! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Motivation
This change introduces the creation of release tarballs (
tar.gzarchives) for multiple file types. These tarballs contain the packagedlspxexecutable for different target architectures. This is necessary to provide users with an easy way to download and install the application for their specific platform.The idea here is to provide an easy way for users and automation scripts to integrate
lspx. Meaning you could simply download the tarball for your system arch/OS, uncompress it, and run the compiled binary and/or add it to your PATH, like copying it to~/.local/bin/for example. It allows for the automated creation and distribution of releases across various platforms, streamlining the release management process.This script runs after a new tag is applied with the
v.*format.Approach
The solution uses a build pipeline that ensures the creation of tarballs for multiple target architectures. The tarballs are generated using the tar command and are made available in the release assets. This process makes the release more accessible by packaging it into a common format (
tar.gz), which is widely supported and easy to distribute. The build process has been verified to work successfully, and the tarballs have been validated for correctness.Something changed for organization reasons is that the compile task now places the binary inside the
/distfolder (ignored on.gitignore).Alternate Designs
No significant alternative designs were considered since the tarball format (
tar.gz) is widely accepted for this kind of release. An alternative could have been to use a .zip format, buttar.gzwas chosen due to its widespread usage in Unix-like systems, where it is more commonly used for distribution.Possible Drawbacks or Risks
The main potential risk is that users may encounter issues with extracting the tarballs on certain systems or platforms that do not have the necessary tools for handling
.tar.gzfiles. However, this is unlikely as tar and gzip are commonly installed by default on most systems.TODOs and Open Questions
Learning
This process involved understanding the correct packaging of executables for multiple platforms, which is a common practice in open-source projects. It reinforced the importance of providing easy-to-use release packages that are accessible across different environments.
Screenshots
It worked on my fork! :)