enso/.github/workflows
Pavel Marek 9daca288f4
Java and Graal versions are checked before the build starts (#9106)
Add checks of Java and GraalVM versions before the `sbt` project is fully loaded. This ensures that all the devs have exactly the version specified in our `build.sbt`.

# Important Notes
Trying to start `sbt` with a different java versions now results in:

```
$ java -version
openjdk version "21" 2023-09-19
OpenJDK Runtime Environment GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15)
OpenJDK 64-Bit Server VM GraalVM CE 21+35.1 (build 21+35-jvmci-23.1-b15, mixed mode, sharing)
$ sbt
[info] welcome to sbt 1.9.7 (GraalVM Community Java 21)
[info] loading settings for project enso-build from plugins.sbt ...
[info] loading project definition from /home/pavel/dev/enso/project
[info] loading settings for project enso from build.sbt ...
[info] resolving key references (65272 settings) ...
[info] set current project to enso (in build file:/home/pavel/dev/enso/)
[error] Running on GraalVM version 21. Expected GraalVM version 21.0.2.
[error] Total time: 0 s, completed Feb 20, 2024, 1:06:18 PM
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)
```

```
$ java -version
openjdk version "17.0.10" 2024-01-16
OpenJDK Runtime Environment JBR-17.0.10+1-1087.17-jcef (build 17.0.10+1-b1087.17)
OpenJDK 64-Bit Server VM JBR-17.0.10+1-1087.17-jcef (build 17.0.10+1-b1087.17, mixed mode)
$ sbt
[info] welcome to sbt 1.9.7 (JetBrains s.r.o. Java 17.0.10)
[info] loading settings for project enso-build from plugins.sbt ...
[info] loading project definition from /home/pavel/dev/enso/project
[info] compiling 44 Scala sources to /home/pavel/dev/enso/project/target/scala-2.12/sbt-1.0/classes ...
[info] loading settings for project enso from build.sbt ...
[info] resolving key references (65272 settings) ...
[info] set current project to enso (in build file:/home/pavel/dev/enso/)
[warn] Running on non-GraalVM JVM (The actual java.vendor is JetBrains s.r.o.). Expected GraalVM Community java.vendor.
[error] Running on Java version 17. Expected Java version 21.
[error] Total time: 0 s, completed Feb 20, 2024, 1:07:40 PM
[warn] Project loading failed: (r)etry, (q)uit, (l)ast, or (i)gnore? (default: r)
```
2024-02-21 10:33:32 +00:00
..
changelog.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
engine-benchmark.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
enso4igv.yml Execute and debug .enso files with bin/enso in VSCode (#8923) 2024-02-12 06:38:11 +00:00
formatting.yml Java and Graal versions are checked before the build starts (#9106) 2024-02-21 10:33:32 +00:00
gui.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
nightly.yml Build nightlies every day. (#6681) 2023-05-15 04:05:08 +02:00
promote.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
publish-docs.yml various default branch switch - related updates 2021-11-01 01:37:30 +01:00
release-update-broken.yml Initialize language server on client connection (#1535) 2021-03-04 16:59:05 +00:00
release.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
scala-new.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
shader-tools.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00
std-libs-benchmark.yml CI: Native aarch64 macOS builds, refactoring workflow generation (#8864) 2024-02-01 13:53:50 +01:00