Skip to content

Commit

Permalink
Improve naming of GraalVM images
Browse files Browse the repository at this point in the history
  • Loading branch information
3arthqu4ke committed Jan 28, 2025
1 parent 536a39f commit fa2c8cd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/graal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macos-latest, windows-latest, ubuntu-latest ]
os:
- { os: windows-latest, name: headlessmc-launcher-windows-x64 }
- { os: ubuntu-latest, name: headlessmc-launcher-linux-x64 }
- { os: macos-latest, name: headlessmc-launcher-macos-x64 }
# TODO Use https://github.com/marketplace/actions/run-on-architecture to support ARM

steps:
- uses: actions/checkout@v4
Expand All @@ -35,7 +39,7 @@ jobs:

- name: Build with Gradle
run: |
./gradlew -Phmc_graal_build=true headlessmc-graalvm:nativeCompile
./gradlew -Phmc_graal_executable=${{ matrix.name }} -Phmc_graal_build=true headlessmc-graalvm:nativeCompile
- name: List files
run: ls headlessmc-graalvm/build/native/nativeCompile
Expand Down
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ org.gradle.jvmargs=-Xmx2048m
hmc_integration_test_enabled=false
# set to true if you want to build a graalvm image of the headlessmc-launcher
hmc_graal_build=false
# The name of the executable file created by graalvm
hmc_graal_executable=headlessmc-launcher
3 changes: 2 additions & 1 deletion headlessmc-graalvm/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ graalvmNative {
}
binaries {
main {
imageName = hmc_graal_executable
sharedLibrary = false
buildArgs.add('--enable-url-protocols=https')
buildArgs.add('-Ob')
buildArgs.add('-O4')
}
}
}
Expand Down

0 comments on commit fa2c8cd

Please sign in to comment.