Skip to content

Commit

Permalink
Fix GraalVM failures in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jan 15, 2025
1 parent 0990fd1 commit fce6c2e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure()
with:
name: 'test-failures'
path: build/reports/tests/*
- name: 'Submit coverage results'
uses: coverallsapp/github-action@v2
Expand Down
16 changes: 16 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ java {
}
compileJava.options.compilerArgs << "-Xmaxerrs" << "9999"

boolean graal = System.getenv()['JAVA_HOME']?.contains('GraalVM');
if (graal) {
logger.lifecycle "Building on GraalVM!"
}

// Load secrets
def getSecrets() {
Properties props = new Properties()
Expand Down Expand Up @@ -87,6 +92,17 @@ sourceSets {
}
sourceSets.main.resources { srcDir 'src/generated/resources' }

if (graal) {
sourceSets {
main {
java {
exclude 'org/graalvm/collections/**'
exclude 'org/graalvm/word/**'
}
}
}
}

configurations {
modLib
implementation.extendsFrom modLib
Expand Down

0 comments on commit fce6c2e

Please sign in to comment.