Changes for README.md: 5 added lines, 4 removed lines.
Original line number
Diff line number
Diff line
@@ -6,7 +6,7 @@
This action sets up a java environment for use in actions by:
- optionally downloading and caching a version of java by version and adding to PATH. Downloads from [Azul's Zulu distribution](http://static.azul.com/zulu/bin/).
- optionally downloading and caching a requested version of java by version and adding to PATH. Default downloads are populated from the [Zulu Community distribution of OpenJDK](http://static.azul.com/zulu/bin/)
- registering problem matchers for error output
# Usage
@@ -20,6 +20,7 @@ steps:
-uses:actions/setup-java@v1
with:
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)
java-package:jdk // (jre, jdk, or jdk+fx) - defaults to jdk
architecture:x64 // (x64 or x86) - defaults to x64
-run:java -cp java HelloWorldApp
```
@@ -32,7 +33,7 @@ steps:
with:
java-version:'4.0.0'
architecture:x64
jdkFile:<path to jdkFile># Optional - jdkFile to install java from. Useful for versions not supported by Azul
jdkFile:<path to jdkFile># Optional - jdkFile to install java from. Useful for versions not found on Zulu Community CDN
-run:java -cp java HelloWorldApp
```
@@ -43,7 +44,8 @@ jobs:
runs-on:ubuntu-16.04
strategy:
matrix:
java:['1.6','9.0.x','12.0.2']
# test against latest update of each major Java version, as well as specific updates of LTS versions:
@@ -209,7 +226,7 @@ function getDownloadInfo(refs, version) {
}
}
if (curUrl==''){
thrownewError(`No valid download found for version ${version}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument`);
thrownewError(`No valid download found for version ${version} and package ${javaPackage}. Check https://static.azul.com/zulu/bin/ for a list of valid versions or download your own jdk file and add the jdkFile argument`);