coursier/setup-action

not installing the correct jvm

MasseGuillaume opened this issue · 1 comments

I'm using coursier/setup-action@v1
https://github.com/MasseGuillaume/porc-epic/blob/c7f39d786f24f2abfff1b23e8ffed9bd0f3a3e68/.github/workflows/ci.yml#L1-L20

setting the jvm to: graalvm:21

https://github.com/MasseGuillaume/porc-epic/runs/6169131815?check_suite_focus=true#step:4:21

output is

 openjdk version "1.8.0_292"
  OpenJDK Runtime Environment (build 1.8.0_292-b09)
  OpenJDK 64-Bit Server VM GraalVM CE 21.1.0 (build 25.292-b09-jvmci-21.1-b05, mixed mode)
  /opt/hostedtoolcache/cs/2.0.16/x64/cs java-home --jvm graalvm:21
  /home/runner/.cache/coursier/jvm/graalvm@21.1.0

I'm expecting Java 17, am I missing something ?

graalvm corresponds to Java 8 builds of GraalVM for now. Specifying an explicit Java versions solves this:

$ cs java --jvm graalvm:21 -version       
openjdk version "1.8.0_302"
OpenJDK Runtime Environment (build 1.8.0_302-b06)
OpenJDK 64-Bit Server VM GraalVM CE 21.3.1 (build 25.302-b06-jvmci-21.3-b05, mixed mode)

$ cs java --jvm graalvm-java17:21 -version
openjdk version "17.0.1" 2021-10-19
OpenJDK Runtime Environment GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05)
OpenJDK 64-Bit Server VM GraalVM CE 21.3.0 (build 17.0.1+12-jvmci-21.3-b05, mixed mode, sharing)