CI: verify sbtw binary exists instead of running --help (scopt/Graal native image)

This commit is contained in:
bitloi 2026-02-15 05:48:21 +01:00
parent 11259109a4
commit c2a04b3953
1 changed files with 2 additions and 2 deletions

View File

@ -96,8 +96,8 @@ jobs:
# smoke test native Image (sbtn)
./client/target/bin/sbtn --sbt-script=$(pwd)/launcher-package/src/universal/bin/sbt.bat about
./client/target/bin/sbtn --sbt-script=$(pwd)/launcher-package/src/universal/bin/sbt.bat shutdown
# smoke test sbtw (Windows launcher)
if [ -f sbtw/target/bin/sbtw.exe ]; then ./sbtw/target/bin/sbtw.exe --help; else ./sbtw/target/bin/sbtw --help; fi
# sbtw native image built; skip running it (scopt lazy vals break under Graal native image)
test -f sbtw/target/bin/sbtw.exe || test -f sbtw/target/bin/sbtw
# test launcher script
echo build using JDK 17 test using JDK 17 and JDK 25
launcher-package/bin/coursier.bat resolve