add support for adoptopenjdk binaries

This commit is contained in:
George Adams 2020-05-26 14:20:02 +01:00
parent 1253a7eed4
commit db7c9fb180
No known key found for this signature in database
GPG key ID: 7B8D7E4421A0916D
7 changed files with 149 additions and 47 deletions

View file

@ -11,13 +11,14 @@ async 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});
await installer.getJava(version, arch, jdkFile, javaPackage);
await installer.getJava(version, vendor, arch, jdkFile, javaPackage);
const matchersPath = path.join(__dirname, '..', '..', '.github');
core.info(`##[add-matcher]${path.join(matchersPath, 'java.json')}`);