Add support for native distribution artifacts#45
Open
mtf90 wants to merge 23 commits into
Open
Conversation
[skip ci]
native applications on macOS require a version number in the x.y.z format which development (-SNAPSHOT) builds do not have. As a result, test distribution artifacts only in the (single) Linux container.
we don't want to deploy (and therefore test) on -latest images to not exclude platforms over time
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.
This PR adds support for building and distributing native Walnut binaries. It does so by leveraging Java's module system and JDK's onboard tools
jlinkandjpackageto build native executables for the respective platforms.The additional steps required for this are encapsulated in a
distprofile typically only run by CI/CD. On publishing a GitHub release, a pipeline is triggered that runs the specific steps and attaches the resulting artifacts to the release (see https://github.com/mtf90/Walnut/releases for examples).Positives
Negatives
dk.brics:automatonandit.unimi.dsi:fastutilcurrently) need to be manually patched by themoditect-maven-plugin.xattr -cr /path/to/app) to run without issues.x.y.zformat (yandzare optional). Therefore, we cannot test native builds for development versions due to the-SNAPSHOTsuffix. Currently, the CI pipeline only runs Linux containers.