Skip to content

Commit 041b46d

Browse files
committed
Fix GraalVM failures in CI
1 parent 0990fd1 commit 041b46d

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ jobs:
7878
uses: actions/upload-artifact@v4
7979
if: failure()
8080
with:
81+
name: 'test-failures'
8182
path: build/reports/tests/*
8283
- name: 'Submit coverage results'
8384
uses: coverallsapp/github-action@v2

build.gradle

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ java {
4040
}
4141
compileJava.options.compilerArgs << "-Xmaxerrs" << "9999"
4242

43+
boolean graal = System.getenv()['JAVA_HOME']?.contains('GraalVM');
44+
if (graal) {
45+
logger.lifecycle "Building on GraalVM!"
46+
}
47+
4348
// Load secrets
4449
def getSecrets() {
4550
Properties props = new Properties()
@@ -142,11 +147,19 @@ dependencies {
142147
}
143148

144149
// https://mvnrepository.com/artifact/org.graalvm.sdk/graal-sdk
145-
modLib "org.graalvm.sdk:graal-sdk:${project.graal_version}"
150+
modLib ("org.graalvm.sdk:graal-sdk:${project.graal_version}") {
151+
if (graal) {
152+
exclude group: 'org.graalvm.collections'
153+
exclude group: 'org.graalvm.word'
154+
}
155+
}
146156
shadow "org.graalvm.sdk:graal-sdk:${project.graal_version}"
147157
// https://mvnrepository.com/artifact/org.graalvm.js/js
148158
modLib ("org.graalvm.js:js:${project.graal_version}") {
149159
exclude group: 'com.ibm.icu', module: 'icu4j'
160+
if (graal) {
161+
exclude group: 'org.graalvm.collections'
162+
}
150163
}
151164
shadow "org.graalvm.js:js:${project.graal_version}"
152165

0 commit comments

Comments
 (0)