Skip to content

Commit

Permalink
feat: support for latest gvm release → 23.1.0
Browse files Browse the repository at this point in the history
- feat: add necessary support to mapping generator for new release
- fix: ambiguity with original gvm `21.0.0` release
- fix: `graalvm-ce-20` test was using oracle
- test: add ce test for `java21`
- test: add oracle test for `java21`
- chore: bump version → `0.11.0`
- chore: regenerate bindist mappings
- chore: deprecate components via `components=` property (only on
  new version)

Signed-off-by: Sam Gammon <[email protected]>
  • Loading branch information
sgammon committed Jan 2, 2024
1 parent 3e787ff commit cbf02ed
Show file tree
Hide file tree
Showing 72 changed files with 19,881 additions and 3,212 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/module.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,14 @@ jobs:
labs: false
skip: false

# Test: GVM CE 21
- label: GraalVM CE 21
target: sample
action: build
directory: "./example/integration_tests/graalvm-ce-21"
labs: false
skip: false

# Test: Oracle GVM 17
- label: Oracle GraalVM 17
target: sample
Expand All @@ -323,6 +331,14 @@ jobs:
labs: false
skip: false

# Test: Oracle GVM 21
- label: Oracle GraalVM 21
target: sample
action: build
directory: "./example/integration_tests/graalvm-oracle-21"
labs: false
skip: false

steps:
- name: Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
Expand Down
2 changes: 1 addition & 1 deletion BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ load(
actual = "//tools:%s" % target,
)
for target in [
"python_requirements",
"buildifier.check",
"buildifier.format",
]
Expand Down Expand Up @@ -47,3 +46,4 @@ bzl_library(
gazelle(
name = "gazelle",
)

22 changes: 11 additions & 11 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,21 @@

module(
name = "rules_graalvm",
version = "0.10.3",
version = "0.11.0",
)

JAVA_VERSION = "17"
JAVA_VERSION = "21"

PYTHON_VERSION = "3.11"

NODE_VERSION = "20.5.0"

GRAALVM_VERSION = "17.0.8"
GRAALVM_VERSION = "21.0.1"

GRAALVM_DIST = "ce"

GRAALVM_SDK_VERSION = "23.0.1"
GRAALVM_SDK_VERSION = "23.1.1"

GRAALVM_COMPONENTS = [
"wasm",
"js",
]

##
## Dependencies: API
Expand Down Expand Up @@ -144,6 +140,7 @@ bazel_dep(
MAVEN_ARTIFACTS = [
"org.graalvm.nativeimage:svm:%s" % GRAALVM_SDK_VERSION,
"org.graalvm.sdk:graal-sdk:%s" % GRAALVM_SDK_VERSION,
"org.graalvm.polyglot:polyglot:%s" % GRAALVM_SDK_VERSION,
]

MAVEN_REPOSITORIES = [
Expand Down Expand Up @@ -180,7 +177,6 @@ gvm = use_extension(
)
gvm.graalvm(
name = "graalvm",
components = GRAALVM_COMPONENTS,
distribution = GRAALVM_DIST,
java_version = JAVA_VERSION,
version = GRAALVM_VERSION,
Expand All @@ -189,14 +185,18 @@ use_repo(
gvm,
"graalvm",
)
use_repo(
gvm,
"graalvm_toolchains",
)

register_toolchains(
"@graalvm//:jvm",
"@graalvm_toolchains//:toolchain",
dev_dependency = True,
)

register_toolchains(
"@graalvm//:sdk",
"@graalvm_toolchains//:toolchain_gvm",
dev_dependency = True,
)

Expand Down
Loading

0 comments on commit cbf02ed

Please sign in to comment.