mirror of
https://github.com/actions/setup-java.git
synced 2024-11-23 10:09:03 +00:00
Add an error condition for an unstable Microsoft OpenJDK build (#263)
This commit is contained in:
parent
8d22286106
commit
d23aed3c80
3
dist/setup/index.js
vendored
3
dist/setup/index.js
vendored
@ -13886,6 +13886,9 @@ class MicrosoftDistributions extends base_installer_1.JavaBase {
|
|||||||
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
||||||
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
||||||
}
|
}
|
||||||
|
if (!this.stable) {
|
||||||
|
throw new Error('Early access versions are not supported');
|
||||||
|
}
|
||||||
const availableVersionsRaw = yield this.getAvailableVersions();
|
const availableVersionsRaw = yield this.getAvailableVersions();
|
||||||
const opts = this.getPlatformOption();
|
const opts = this.getPlatformOption();
|
||||||
const availableVersions = availableVersionsRaw.map(item => ({
|
const availableVersions = availableVersionsRaw.map(item => ({
|
||||||
|
@ -40,6 +40,11 @@ export class MicrosoftDistributions extends JavaBase {
|
|||||||
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
if (this.architecture !== 'x64' && this.architecture !== 'aarch64') {
|
||||||
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
throw new Error(`Unsupported architecture: ${this.architecture}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.stable) {
|
||||||
|
throw new Error('Early access versions are not supported');
|
||||||
|
}
|
||||||
|
|
||||||
const availableVersionsRaw = await this.getAvailableVersions();
|
const availableVersionsRaw = await this.getAvailableVersions();
|
||||||
|
|
||||||
const opts = this.getPlatformOption();
|
const opts = this.getPlatformOption();
|
||||||
|
Loading…
Reference in New Issue
Block a user