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

Build the native image as part of the release process #1360

Merged
merged 2 commits into from
Mar 25, 2023

Conversation

ggrossetie
Copy link
Contributor

What I Did

  • Export release_version as a job output using gradle properties -q | grep "version:" | awk '{print $2}'
  • Replace POM_VERSION by RELEASE_VERSION in release-snapshot.sh and release.sh
  • Add the Linux binary (amd64) in the release directory
  • Introduce a job named build_artifacts to build PlantUML
  • Add a new job named native_images to build native images from the artifacts (i.e., jar files) produced by build_artifacts
  • Use actions/cache/save@v3 and actions/cache/restore@v3 to share artifacts between jobs
  • Call .github/workflows/native-image.yml (reusable workflow) in ci.yml

Here's the build artifact uploaded on the CI workflow:

image

As you can see, there' a plantuml-linux-amd64-M.YYYY.m-SNAPSHOT binary included.

@ggrossetie
Copy link
Contributor Author

@arnaudroques arnaudroques merged commit 108d079 into plantuml:master Mar 25, 2023
@ggrossetie
Copy link
Contributor Author

Yay, I can see the native image in the snapshot release: https://github.com/plantuml/plantuml/releases/tag/snapshot 🎉
I will try to build a native image for macOS and Windows 😄

@arnaudroques
Copy link
Contributor

I will try to build a native image for macOS and Windows

Yes, having native image is really more convenient for some people!
Many thanks for your help!

@The-Lum
Copy link
Collaborator

The-Lum commented Mar 26, 2023

Only just one question ('in French: juste pour ma gouverne'):

  • Why Replace POM_VERSION by RELEASE_VERSION?

Regards.

@ggrossetie ggrossetie deleted the publish-native-image-release branch February 11, 2024 10:47
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.

None yet

3 participants