mirror of
https://github.com/actions/setup-java.git
synced 2025-04-21 18:36:46 +00:00
add windows case
This commit is contained in:
parent
b97e00c0da
commit
cf3e355b21
5 changed files with 17 additions and 13 deletions
6
dist/setup/index.js
vendored
6
dist/setup/index.js
vendored
|
@ -17461,6 +17461,9 @@ function getJavaAdoptOpenJDK(version, javaPackage, arch) {
|
|||
case 'darwin':
|
||||
OS = 'mac';
|
||||
break;
|
||||
case 'win32':
|
||||
OS = 'windows';
|
||||
break;
|
||||
}
|
||||
const http = new httpm.HttpClient('setup-java', undefined, {
|
||||
allowRetries: true,
|
||||
|
@ -28769,13 +28772,12 @@ function run() {
|
|||
if (!version) {
|
||||
version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
|
||||
}
|
||||
const vendor = core.getInput('vendor', { required: true });
|
||||
const arch = core.getInput(constants.INPUT_ARCHITECTURE, { required: true });
|
||||
const javaPackage = core.getInput(constants.INPUT_JAVA_PACKAGE, {
|
||||
required: true
|
||||
});
|
||||
const jdkFile = core.getInput(constants.INPUT_JDK_FILE, { required: false });
|
||||
const distro = core.getInput('vendor', { required: true });
|
||||
const distro = core.getInput('distro', { required: true });
|
||||
yield installer.getJava(version, distro, arch, jdkFile, javaPackage);
|
||||
const matchersPath = path.join(__dirname, '..', '..', '.github');
|
||||
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue