File tree 4 files changed +7
-5
lines changed 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 60
60
if : matrix.os_family != 'Linux'
61
61
uses : actions/setup-java@v4
62
62
with :
63
- java-version : |
64
- 21
65
- 23
63
+ java-version : 23
66
64
distribution : " graalvm"
67
65
68
66
- name : Set up Gradle
Original file line number Diff line number Diff line change 1
- # Use an old version of Ubuntu to build the test server to maintain compatibility with
2
- # older versions of glibc, specifically glib 2.17.
1
+ # This Dockerfile builds a GraalVM Native Image Test Server with musl support.
3
2
FROM ubuntu:24.04
4
3
ENV JAVA_HOME=/usr/lib64/graalvm/graalvm-community-java23
5
4
COPY --from=ghcr.io/graalvm/native-image-community:23 $JAVA_HOME $JAVA_HOME
Original file line number Diff line number Diff line change
1
+ # This Dockerfile builds a GraalVM Native Image Test Server with glibc support.
1
2
# Use an old version of Ubuntu to build the test server to maintain compatibility with
2
3
# older versions of glibc, specifically glib 2.17.
3
4
FROM ubuntu:18.04
Original file line number Diff line number Diff line change @@ -51,6 +51,10 @@ dependencies {
51
51
}
52
52
53
53
tasks. named(' compileJava21Java' ) {
54
+ // Gradle toolchains are too strict and require the JDK to match the specified version exactly.
55
+ // This is a workaround to use a JDK 21+ compiler.
56
+ //
57
+ // See also: https://github.com/gradle/gradle/issues/16256
54
58
if (! JavaVersion . current(). isCompatibleWith(JavaVersion . VERSION_21 )) {
55
59
javaCompiler = javaToolchains. compilerFor {
56
60
languageVersion = JavaLanguageVersion . of(21 )
You can’t perform that action at this time.
0 commit comments