File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8080 repository : sbt/zinc
8181 ref : 1.10.x
8282 path : zinc
83+ - uses : graalvm/setup-graalvm@v1
84+ if : ${{ matrix.jobtype >= 7 && matrix.jobtype <= 9 }}
85+ with :
86+ java-version : ' 23'
87+ native-image-musl : ' true'
88+ set-java-home : ' false'
89+ github-token : ${{ secrets.GITHUB_TOKEN }}
8390 - name : Setup JDK
8491 uses : actions/setup-java@v4
8592 with :
Original file line number Diff line number Diff line change @@ -1176,8 +1176,7 @@ lazy val sbtClientProj = (project in file("client"))
11761176 nativeImageReady := { () =>
11771177 ()
11781178 },
1179- nativeImageVersion := " 23.0" ,
1180- nativeImageJvm := " graalvm-java23" ,
1179+ nativeImageInstalled := true ,
11811180 nativeImageOutput := {
11821181 val outputDir = (target.value / " bin" ).toPath
11831182 if (! Files .exists(outputDir)) {
@@ -1199,7 +1198,7 @@ lazy val sbtClientProj = (project in file("client"))
11991198 s " -H:Name= ${target.value / " bin" / " sbtn" }" ,
12001199 ) ++ (if (isLinux && isArmArchitecture)
12011200 Seq (" -H:PageSize=65536" ) // Make sure binary runs on kernels with page size set to 4k, 16 and 64k
1202- else Nil ),
1201+ else Nil ) ++ ( if (isLinux && ! isArmArchitecture) Seq ( " --static " , " --libc=musl " ) else Nil ) ,
12031202 buildThinClient := {
12041203 val isFish = Def .spaceDelimited(" " ).parsed.headOption.fold(false )(_ == " --fish" )
12051204 val ext = if (isWin) " .bat" else if (isFish) " .fish" else " .sh"
You can’t perform that action at this time.
0 commit comments