Skip to content

Commit 353a27c

Browse files
fix: add support for non-major Java versions to be used as toolchains
1 parent 81fc9b2 commit 353a27c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+5288
-12
lines changed

.github/workflows/module.build.yml

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,43 @@ jobs:
274274
labs: false
275275
skip: false
276276

277-
# Test: Java Toolchain
278-
- label: Java Toolchain
277+
# Test: Java Toolchain 17
278+
- label: Java Toolchain 17
279279
target: sample
280280
action: build
281-
directory: "./example/integration_tests/java-toolchain"
281+
directory: "./example/integration_tests/java-toolchain-17"
282+
labs: false
283+
skip: false
284+
285+
# Test: Java Toolchain 20
286+
- label: Java Toolchain 20
287+
target: sample
288+
action: build
289+
directory: "./example/integration_tests/java-toolchain-20"
290+
labs: false
291+
skip: false
292+
293+
# Test: Java Toolchain 21
294+
- label: Java Toolchain 21
295+
target: sample
296+
action: build
297+
directory: "./example/integration_tests/java-toolchain-21"
298+
labs: false
299+
skip: false
300+
301+
# Test: Java Toolchain 22
302+
- label: Java Toolchain 22
303+
target: sample
304+
action: build
305+
directory: "./example/integration_tests/java-toolchain-22"
306+
labs: false
307+
skip: false
308+
309+
# Test: Java Toolchain 23
310+
- label: Java Toolchain 23
311+
target: sample
312+
action: build
313+
directory: "./example/integration_tests/java-toolchain-23"
282314
labs: false
283315
skip: false
284316

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
public class Main {
2+
public static void main(String args[]) {
3+
System.out.println("Hello, GraalVM: " + Runtime.version());
4+
}
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
build --extra_toolchains=@graalvm//:toolchain
2+
build --extra_toolchains=@graalvm//:toolchain_gvm
3+
build --extra_toolchains=@graalvm//:bootstrap_runtime_toolchain
4+
5+
build --tool_java_language_version=20
6+
build --tool_java_runtime_version=graalvm_20
7+
build --java_language_version=20
8+
build --java_runtime_version=graalvm_20

0 commit comments

Comments
 (0)