Skip to content

Commit

Permalink
different between graalvm 22.0 and 23.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Weaxs committed Mar 6, 2024
1 parent f92cd5b commit d31a8bc
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
with:
java-version: '17'
distribution: 'graalvm'
version: '22.3.0'
cache: maven
- name: Install dependencies
run: |
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/test_with_graaljdk_latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Test with OpenJDK

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up GraalVM 17
uses: graalvm/setup-graalvm@v1
with:
java-version: '17'
distribution: 'graalvm'
cache: maven
- name: Compile C++
run: |
cd spring-openjdk/src/test/resources/scripts
c++ hello.cpp -o hello -fPIC -pie -shared
c++ hello_func.cpp -o hello_func -fPIC -pie -shared
- name: Build with Maven
run: cd spring-openjdk && mvn -B package -e -X
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

Demos for graalvm with springboot projects.

## spring with graalvm-jdk
## Attention
If you upgrade graalvm 22.0=>23.0, you need care about this [Turn all GraalVM Languages artifacts into standard Maven dependencies for Polyglot Embedders](https://github.com/oracle/graal/issues/6852)

After GraalVM 23.0, it's not necessary to use `gu install` to install languages, just use standard Maven dependencies

## spring with graalvm-jdk (graalvm-jdk version < 23.0)

**JDK**[graalvm-jdk](https://www.graalvm.org/downloads/)

Expand All @@ -22,7 +27,7 @@ Demos for graalvm with springboot projects.
> ✨ 1.gu command in “../graalvm-ce-xx/Contents/Home/bin” directory<br/> ✨ 2. before use llvm, must compile c/c++/fortran/rus/others to executables with embedded bitcode. you can use clang/clang++ in llvm-toolchain, refer [Compiling to LLVM Bitcode
> ](https://www.graalvm.org/latest/reference-manual/llvm/Compiling/)
## spring with openjdk
## spring with openjdk (graalvm-jdk version >= 23.0)

**JDK**[openjdk](https://openjdk.org/)

Expand Down

0 comments on commit d31a8bc

Please sign in to comment.