Use java-version (#14)

This commit is contained in:
Danny McCormick authored and GitHub committed 2019-08-13 16:24:39 -04:00
1 parent cbc5ae3642
commit 475978becf
4 files changed
+15 -6

No files matched your search

+3 -3
View File
@@ -19,7 +19,7 @@ steps:
- uses: actions/checkout@latest
- uses: actions/setup-java@v1
with:
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)
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)
architecture: x64 // (x64 or x86) - defaults to x64
- run: java -cp java HelloWorldApp
```
@@ -30,7 +30,7 @@ steps:
- uses: actions/checkout@master
- uses: actions/setup-java@v1
with:
version: '4.0.0'
java-version: '4.0.0'
architecture: x64
jdkFile: <path to jdkFile> // Optional - jdkFile to install java from. Useful for versions not supported by Azul
- run: java -cp java HelloWorldApp
@@ -50,7 +50,7 @@ jobs:
- name: Setup java
uses: actions/setup-java@v1
with:
version: ${{ matrix.java }}
java-version: ${{ matrix.java }}
architecture: x64
- run: java -cp java HelloWorldApp
```