You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+29-1Lines changed: 29 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -19,11 +19,39 @@ steps:
19
19
- uses: actions/checkout@v2
20
20
- uses: actions/setup-java@v1
21
21
with:
22
-
java-version: '9.0.4'# The JDK version to make available on the path. Takes a whole or semver JDK version, or 1.x syntax (e.g. 1.8 => Jdk 8.x). To specify a specific version for JDK 8 or older use the following pattern (8.0.x)
22
+
java-version: '9.0.4'# The JDK version to make available on the path.
23
23
java-package: jdk # (jre, jdk, or jdk+fx) - defaults to jdk
24
24
architecture: x64# (x64 or x86) - defaults to x64
25
25
- run: java -cp java HelloWorldApp
26
26
```
27
+
Examples of version specifications that the java-version parameter will accept:
28
+
29
+
- A major Java version
30
+
31
+
e.g. ```6, 7, 8, 9, 10, 11, 12, 13, ...```
32
+
33
+
- A semver Java version specification
34
+
35
+
e.g. ```8.0.232, 7.0.181, 11.0.4```
36
+
37
+
e.g. ```8.0.x, >11.0.3, >=13.0.1, <8.0.212```
38
+
39
+
- An early access (EA) Java version
40
+
41
+
e.g. ```14-ea, 15-ea```
42
+
43
+
e.g. ```14.0.0-ea, 15.0.0-ea```
44
+
45
+
e.g. ```14.0.0-ea.28, 15.0.0-ea.2``` (syntax for specifying an EA build number)
46
+
47
+
Note that, per semver rules, EA builds will be matched by explicit EA version specifications.
0 commit comments