Loading README.md +3 −3 Changes for README.md: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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 ``` Loading @@ -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 Loading @@ -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 ``` Loading action.yml +4 −1 Changes for action.yml: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ name: 'Setup Java environment' description: 'Setup your runner with Java' author: 'GitHub' inputs: version: java-version: description: '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)' required: true architecture: Loading @@ -12,6 +12,9 @@ inputs: jdkFile: description: 'Path to where the compressed JDK is located. The path could be in your source repository or a local path on the agent.' required: false # Deprecated option, do not use. Will not be supported after October 1, 2019 version: description: 'Deprecated. Use java-version instead. Will not be supported after October 1, 2019' runs: using: 'node12' main: 'lib/setup-java.js' lib/setup-java.js +4 −1 Changes for lib/setup-java.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,10 @@ const path = __importStar(require("path")); function run() { return __awaiter(this, void 0, void 0, function* () { try { const version = core.getInput('version', { required: true }); let version = core.getInput('version'); if (!version) { version = core.getInput('java-version', { required: true }); } const arch = core.getInput('architecture', { required: true }); const jdkFile = core.getInput('jdkFile', { required: false }) || ''; yield installer.getJava(version, arch, jdkFile); Loading src/setup-java.ts +4 −1 Changes for src/setup-java.ts: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ import * as path from 'path'; async function run() { try { const version = core.getInput('version', {required: true}); let version = core.getInput('version'); if (!version) { version = core.getInput('java-version', {required: true}); } const arch = core.getInput('architecture', {required: true}); const jdkFile = core.getInput('jdkFile', {required: false}) || ''; Loading Loading
README.md +3 −3 Changes for README.md: 3 added lines, 3 removed lines. Original line number Diff line number Diff line Loading @@ -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 ``` Loading @@ -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 Loading @@ -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 ``` Loading
action.yml +4 −1 Changes for action.yml: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ name: 'Setup Java environment' description: 'Setup your runner with Java' author: 'GitHub' inputs: version: java-version: description: '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)' required: true architecture: Loading @@ -12,6 +12,9 @@ inputs: jdkFile: description: 'Path to where the compressed JDK is located. The path could be in your source repository or a local path on the agent.' required: false # Deprecated option, do not use. Will not be supported after October 1, 2019 version: description: 'Deprecated. Use java-version instead. Will not be supported after October 1, 2019' runs: using: 'node12' main: 'lib/setup-java.js'
lib/setup-java.js +4 −1 Changes for lib/setup-java.js: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -21,7 +21,10 @@ const path = __importStar(require("path")); function run() { return __awaiter(this, void 0, void 0, function* () { try { const version = core.getInput('version', { required: true }); let version = core.getInput('version'); if (!version) { version = core.getInput('java-version', { required: true }); } const arch = core.getInput('architecture', { required: true }); const jdkFile = core.getInput('jdkFile', { required: false }) || ''; yield installer.getJava(version, arch, jdkFile); Loading
src/setup-java.ts +4 −1 Changes for src/setup-java.ts: 4 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -4,7 +4,10 @@ import * as path from 'path'; async function run() { try { const version = core.getInput('version', {required: true}); let version = core.getInput('version'); if (!version) { version = core.getInput('java-version', {required: true}); } const arch = core.getInput('architecture', {required: true}); const jdkFile = core.getInput('jdkFile', {required: false}) || ''; Loading