Commit build artifact

This commit is contained in:
Wes Morgan 2022-08-31 07:12:42 -06:00
parent 148d9af0a6
commit a115f58891
No known key found for this signature in database
GPG key ID: 5639E4CBFA17DC84

16
dist/setup/index.js vendored
View file

@ -102555,6 +102555,7 @@ class TemurinDistribution extends base_installer_1.JavaBase {
constructor(installerOptions, jvmImpl) { constructor(installerOptions, jvmImpl) {
super(`Temurin-${jvmImpl}`, installerOptions); super(`Temurin-${jvmImpl}`, installerOptions);
this.jvmImpl = jvmImpl; this.jvmImpl = jvmImpl;
installerOptions.architecture = this.osArchToDistributionArch(installerOptions.architecture);
} }
findPackageForDownload(version) { findPackageForDownload(version) {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
@ -102666,6 +102667,18 @@ class TemurinDistribution extends base_installer_1.JavaBase {
return process.platform; return process.platform;
} }
} }
osArchToDistributionArch(osArch) {
switch (osArch) {
case 'amd64':
return 'x64';
case 'ia32':
return 'x32';
case 'arm64':
return 'aarch64';
default:
return osArch;
}
}
} }
exports.TemurinDistribution = TemurinDistribution; exports.TemurinDistribution = TemurinDistribution;
@ -102965,12 +102978,13 @@ const constants = __importStar(__nccwpck_require__(9042));
const cache_1 = __nccwpck_require__(4810); const cache_1 = __nccwpck_require__(4810);
const path = __importStar(__nccwpck_require__(1017)); const path = __importStar(__nccwpck_require__(1017));
const distribution_factory_1 = __nccwpck_require__(924); const distribution_factory_1 = __nccwpck_require__(924);
const os = __importStar(__nccwpck_require__(2037));
function run() { function run() {
return __awaiter(this, void 0, void 0, function* () { return __awaiter(this, void 0, void 0, function* () {
try { try {
const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true }); const version = core.getInput(constants.INPUT_JAVA_VERSION, { required: true });
const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true }); const distributionName = core.getInput(constants.INPUT_DISTRIBUTION, { required: true });
const architecture = core.getInput(constants.INPUT_ARCHITECTURE); const architecture = core.getInput(constants.INPUT_ARCHITECTURE) || os.arch();
const packageType = core.getInput(constants.INPUT_JAVA_PACKAGE); const packageType = core.getInput(constants.INPUT_JAVA_PACKAGE);
const jdkFile = core.getInput(constants.INPUT_JDK_FILE); const jdkFile = core.getInput(constants.INPUT_JDK_FILE);
const cache = core.getInput(constants.INPUT_CACHE); const cache = core.getInput(constants.INPUT_CACHE);