mirror of
https://gitea.com/actions/setup-java.git
synced 2025-11-14 03:46:24 +08:00
Compare commits
13 Commits
v3.14.0
...
72c9ce2c84
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72c9ce2c84 | ||
|
|
8286b98650 | ||
|
|
24a47ec582 | ||
|
|
fd07d32b82 | ||
|
|
daeeba334d | ||
|
|
39dad2981b | ||
|
|
837769072b | ||
|
|
31c9df3d55 | ||
|
|
a87315f729 | ||
|
|
8f6cc5c0f6 | ||
|
|
4726f89bc9 | ||
|
|
600e3d9953 | ||
|
|
d0728cce06 |
5
.github/workflows/e2e-versions.yml
vendored
5
.github/workflows/e2e-versions.yml
vendored
@@ -1,3 +1,4 @@
|
|||||||
|
|
||||||
name: Validate Java e2e
|
name: Validate Java e2e
|
||||||
|
|
||||||
on:
|
on:
|
||||||
@@ -69,7 +70,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-13, windows-latest, ubuntu-latest]
|
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||||
distribution: ['temurin', 'zulu', 'liberica']
|
distribution: ['temurin', 'zulu', 'liberica']
|
||||||
version:
|
version:
|
||||||
- '11.0'
|
- '11.0'
|
||||||
@@ -263,7 +264,7 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# x86 is not supported on macOS
|
# x86 is not supported on macOS
|
||||||
os: [windows-latest, ubuntu-22.04]
|
os: [windows-latest, ubuntu-latest]
|
||||||
distribution: ['liberica', 'zulu', 'corretto']
|
distribution: ['liberica', 'zulu', 'corretto']
|
||||||
version: ['11']
|
version: ['11']
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
7
dist/setup/index.js
vendored
7
dist/setup/index.js
vendored
@@ -130914,10 +130914,9 @@ class DragonwellDistribution extends base_installer_1.JavaBase {
|
|||||||
}
|
}
|
||||||
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
||||||
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
||||||
const jdkVersionNums = jdkVersion
|
if (jdkVersion.split('.').length > 3) {
|
||||||
.replace('+', '.')
|
jdkVersion = util_1.convertVersionToSemver(jdkVersion);
|
||||||
.split('.');
|
}
|
||||||
jdkVersion = util_1.convertVersionToSemver(`${jdkVersionNums.slice(0, 3).join('.')}.${jdkVersionNums[jdkVersionNums.length - 1]}`);
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
os: platform,
|
os: platform,
|
||||||
|
|||||||
@@ -149,14 +149,9 @@ export class DragonwellDistribution extends JavaBase {
|
|||||||
|
|
||||||
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
// Some version of Dragonwell JDK are numerated with help of non-semver notation (more then 3 digits).
|
||||||
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
// Common practice is to transform excess digits to the so-called semver build part, which is prefixed with the plus sign, to be able to operate with them using semver tools.
|
||||||
const jdkVersionNums: string[] = jdkVersion
|
if (jdkVersion.split('.').length > 3) {
|
||||||
.replace('+', '.')
|
jdkVersion = convertVersionToSemver(jdkVersion);
|
||||||
.split('.');
|
}
|
||||||
jdkVersion = convertVersionToSemver(
|
|
||||||
`${jdkVersionNums.slice(0, 3).join('.')}.${
|
|
||||||
jdkVersionNums[jdkVersionNums.length - 1]
|
|
||||||
}`
|
|
||||||
);
|
|
||||||
|
|
||||||
for (const edition in archMap) {
|
for (const edition in archMap) {
|
||||||
eligibleVersions.push({
|
eligibleVersions.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user