Skip to content

Commit

Permalink
Made GraalVM build executable, still missing reachability metadata fo…
Browse files Browse the repository at this point in the history
…r gson serialization
  • Loading branch information
3arthqu4ke committed Jan 21, 2025
1 parent ebdf8f0 commit 281e961
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/graal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ on:
jobs:
build:

# runs-on: ubuntu-latest
runs-on: windows-latest
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
Expand All @@ -27,15 +26,15 @@ jobs:
java --version
native-image --version
#- name: Grant execute permission for gradlew
# run: chmod +x gradlew
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Build with Gradle
run: |
./gradlew -Phmc_graal_build=true headlessmc-launcher:nativeCompile
#- name: List files
# run: ls headlessmc-launcher/build/native/nativeCompile
- name: List files
run: ls headlessmc-launcher/build/native/nativeCompile

- name: Publish Artifact
uses: actions/upload-artifact@v4
Expand Down
13 changes: 13 additions & 0 deletions headlessmc-launcher/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -115,3 +115,16 @@ shadowJar {
exclude("module-info.class")
exclude("LICENSE")
}

graalvmNative {
agent {
defaultMode = "standard"
enabled = true
}
binaries {
main {
sharedLibrary = false
buildArgs.add('--enable-url-protocols=https')
}
}
}

0 comments on commit 281e961

Please sign in to comment.