Commit b739313
committed
Improve CI permissions and fix Java for JRuby 10
Workflows run with extended set of permissions by default.
By specifying any permission explicitly, all others are set to none.
Ref: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
JRuby 10.0 Requires Java 21 but Java 17 was used. This eliminates the following
error:
```
Error: LinkageError occurred while loading main class org.jruby.Main
java.lang.UnsupportedClassVersionError: org/jruby/Main has been compiled by a more recent version of the Java Runtime (class file version 65.0), this version of the Java Runtime only recognizes class file versions up to 61.0
JRuby failed to start, try Java 21 envs
```1 parent 5e15e9d commit b739313
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
18 | 27 | | |
19 | 28 | | |
20 | 29 | | |
| |||
0 commit comments