We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77e63f1 commit 2f1969bCopy full SHA for 2f1969b
.github/workflows/build.yml
@@ -33,7 +33,7 @@ jobs:
33
java-version: '21'
34
distribution: 'graalvm-community'
35
- name: Build JAR
36
- run: ./gradlew nativeCompile
+ run: ./gradlew nativeCompile -Pprod
37
- name: Build Docker image
38
run: docker build -t javabot .
39
- name: Tag docker image
build.gradle.kts
@@ -121,8 +121,11 @@ tasks.processTestAot {
121
graalvmNative {
122
binaries {
123
named("main") {
124
- //For development:
125
- //quickBuild.set(true)
+ if (hasProperty("prod")) {
+ buildArgs.add("-O3")
126
+ } else {
127
+ quickBuild.set(true)
128
+ }
129
buildArgs.add("-H:+UnlockExperimentalVMOptions")
130
buildArgs.add("-H:JNIConfigurationFiles=${projectDir}/graal/jni-config.json")
131
}
0 commit comments