-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Add GraalVM Community Edition & GraalVM Native Image (in order to build Java native images) #2197
Comments
Hello @bernhardvollnhofer , Did you consider using community tasks to install GraalVM in runtime? |
Not yet, I can try it out. |
Moved to backlog to take a look deeper. If we don't find any other issues with this tool, we will add it to the images |
Hello @bernhardvollnhofer, there are two Java versions for GraalVM: Java8 and Java11. Which version do you prefer? |
Hi, @nikita-bykov. I prefer Java 11 since it has handy new features like the |
We have added GraalVM Community Edition & GraalVM Native Image installation to Ubuntu 20.04. |
Thank you very much. 👍 🙂 |
I have created this simple workflow:
name: GraalVM
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: gu I just wanted to test the GraalVM update with However, it results in this error:
Am I doing something wrong? |
Hello @BERVOL , image deployment is not completed yet. We have to roll back this week images due to an issue with Android NDK. The next image should be deployed early next week. Also please pay attention that we don't add GraalVM folder to PATH because it overrides and intersects a lot of other pre-installed tools.
|
@BERVOL we've finished Ubuntu20 image deployment! GraalVM is available https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-README.md#graalvm |
Hi. I have just tested the
This is my workflow: name: Native Image build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- run: echo $GRAALVM_11_ROOT >> $GITHUB_PATH
- run: gu See also here: https://github.com/bervol/micronaut-poc/blob/fe4d30a0dc849e074b8f3f5b3c49ea23fa61c054/.github/workflows/native-image-build.yml What am I doing wrong? |
Tool information
native-image --version
Area for Triage:
Question, Bug, or Feature?:
Feature
Virtual environments affected
Can this tool be installed during the build?
I have created a repository in which GraalVM & Native Image is installed during a GitHub Actions build: https://github.com/infonova/github-graal-poc/blob/main/.github/workflows/graal-poc.yml
Tool installation time in runtime
46 seconds
Are you willing to submit a PR?
No
The text was updated successfully, but these errors were encountered: