mirror of
https://github.com/actions/setup-java.git
synced 2025-06-30 13:04:13 +00:00
removed libc_type
This commit is contained in:
parent
51e12f8439
commit
ecdb021d00
2 changed files with 0 additions and 10 deletions
5
dist/setup/index.js
vendored
5
dist/setup/index.js
vendored
|
@ -33694,23 +33694,19 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
||||||
distribution = 'zulu';
|
distribution = 'zulu';
|
||||||
}
|
}
|
||||||
let archiveType;
|
let archiveType;
|
||||||
let libcType;
|
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
operatingSystem = 'windows';
|
operatingSystem = 'windows';
|
||||||
archiveType = 'zip';
|
archiveType = 'zip';
|
||||||
libcType = 'c_std_lib';
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
operatingSystem = 'macos';
|
operatingSystem = 'macos';
|
||||||
let zipArchive = distribution === 'liberica' || distribution === 'openlogic';
|
let zipArchive = distribution === 'liberica' || distribution === 'openlogic';
|
||||||
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
||||||
libcType = 'libc';
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
operatingSystem = 'linux';
|
operatingSystem = 'linux';
|
||||||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||||
libcType = 'glibc';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;
|
let url = constants_1.DISCO_URL + constants_1.PACKAGES_PATH;
|
||||||
|
@ -33732,7 +33728,6 @@ function getDownloadInfo(refs, version, arch, javaPackage, distro = 'zulu') {
|
||||||
url += '&architecture=' + architecture;
|
url += '&architecture=' + architecture;
|
||||||
url += '&operating_system=' + operatingSystem;
|
url += '&operating_system=' + operatingSystem;
|
||||||
url += '&archive_type=' + archiveType;
|
url += '&archive_type=' + archiveType;
|
||||||
url += '&libc_type=' + libcType;
|
|
||||||
if (version.includes('x') ||
|
if (version.includes('x') ||
|
||||||
version.includes('ea') ||
|
version.includes('ea') ||
|
||||||
version.startsWith('1.')) {
|
version.startsWith('1.')) {
|
||||||
|
|
|
@ -220,22 +220,18 @@ async function getDownloadInfo(
|
||||||
distribution = 'zulu';
|
distribution = 'zulu';
|
||||||
}
|
}
|
||||||
let archiveType;
|
let archiveType;
|
||||||
let libcType;
|
|
||||||
if (IS_WINDOWS) {
|
if (IS_WINDOWS) {
|
||||||
operatingSystem = 'windows';
|
operatingSystem = 'windows';
|
||||||
archiveType = 'zip';
|
archiveType = 'zip';
|
||||||
libcType = 'c_std_lib';
|
|
||||||
} else {
|
} else {
|
||||||
if (process.platform === 'darwin') {
|
if (process.platform === 'darwin') {
|
||||||
operatingSystem = 'macos';
|
operatingSystem = 'macos';
|
||||||
let zipArchive =
|
let zipArchive =
|
||||||
distribution === 'liberica' || distribution === 'openlogic';
|
distribution === 'liberica' || distribution === 'openlogic';
|
||||||
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
archiveType = zipArchive ? 'zip' : 'tar.gz';
|
||||||
libcType = 'libc';
|
|
||||||
} else {
|
} else {
|
||||||
operatingSystem = 'linux';
|
operatingSystem = 'linux';
|
||||||
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
archiveType = distribution === 'ojdk_build' ? 'zip' : 'tar.gz';
|
||||||
libcType = 'glibc';
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -257,7 +253,6 @@ async function getDownloadInfo(
|
||||||
url += '&architecture=' + architecture;
|
url += '&architecture=' + architecture;
|
||||||
url += '&operating_system=' + operatingSystem;
|
url += '&operating_system=' + operatingSystem;
|
||||||
url += '&archive_type=' + archiveType;
|
url += '&archive_type=' + archiveType;
|
||||||
url += '&libc_type=' + libcType;
|
|
||||||
if (
|
if (
|
||||||
version.includes('x') ||
|
version.includes('x') ||
|
||||||
version.includes('ea') ||
|
version.includes('ea') ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue