-
Notifications
You must be signed in to change notification settings - Fork 32
chore: Update Graalvm version in GitHub workflows #731
Conversation
Codecov Report
@@ Coverage Diff @@
## main #731 +/- ##
============================================
- Coverage 78.66% 78.60% -0.07%
Complexity 160 160
============================================
Files 54 54
Lines 2958 2958
Branches 500 500
============================================
- Hits 2327 2325 -2
- Misses 423 425 +2
Partials 208 208 |
@Delawen |
I think it makes sense to have a fixed version to prevent random occurring bugs due to graalvm. But also, at the same time, we are not looking at minor versions of java. |
agree but it seems that they are pushing to use the "graalvm" distriution based on https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later If I understand well, it means that it is using Oracle Graalvm JDK instead of the community edition. the license is different https://www.oracle.com/java/technologies/javase/jdk-faqs.html#GraalVM-licensing we will need to read it carefully. I think we should also ask what Quarkus is recommending and internally what Red Hat is recommending.
End-users will pick the latest version of Java on an update of their system. There are very low chance of regression for minor Java version for the not that extensive use of Java API we are using in this project. The graalvm has an high impact for the native binary that is generated, the end-users won't be able to update it. |
Yes, it looks that with new releases, they don't use graalvm versioning as before (e.g.
tldr, versioning of Graalvm was changed https://www.graalvm.org/release-notes/
and due to that, the ====
We can use different |
7b300f8
to
649a47f
Compare
Unfortunately, ubuntu and windows native build constantly fail on this error
However, it passes on macOS which has more powerful hardware ( +1CPU core, +7GB ram ) building api package with example (workflows from some merged PR) of a building api package with Graalvm Locally |
I found a workaround. By |
649a47f
to
bd7457f
Compare
bd7457f
to
216ed92
Compare
If I understand this graalvm/setup-graalvm#47 correctly, we can specify a full version, e.g. Also |
We need the companion PR for https://github.com/KaotoIO/kaoto-ui/blob/main/.github/workflows/add-standalone-jar-to-release.yml#L114-L118 (Waiting to have it to merge or we will be using different graalvm versions depending on who builds what) |
* Used community version instead of Oracle version * Set maximum heap size for building native image
216ed92
to
4e73488
Compare
Kudos, SonarCloud Quality Gate passed! |
@Delawen sure, I have created a PR: KaotoIO/kaoto-ui#2118 |
https://github.com/graalvm/setup-graalvm#migrating-from-graalvm-223-or-earlier-to-the-new-graalvm-for-jdk-17-and-later