GeezerVison is showing github.com — Fix support for GraalVM `25.3.4.1` · graalvm/setup-graalvm@39d80c6
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .github/workflows/ci.yml +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 44 | 44 | strategy: | 45 | 45 | matrix: | 46 | 46 | version: [ | 47 | | - '25.1', | 48 | | - '25i1', # innovation release | 49 | | - '25.1.3', # full version | | 47 | + '25.3', | | 48 | + '25i3', # innovation release | | 49 | + '25.3.4.1', # full version | 50 | 50 | '25.0' # LTS release | 51 | 51 | ] | 52 | 52 | distribution: ['graalvm', 'graalvm-community'] | |
Collapse file Copy file name to clipboardExpand all lines: README.md +2-2Lines changed: 2 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
| 29 | 29 | - uses: actions/checkout@v6 | 30 | 30 | - uses: graalvm/setup-graalvm@v1 | 31 | 31 | with: | 32 | | - version: '25.1' # or '25.0' for LTS; See 'Options' for more details | | 32 | + version: '25.3' # or '25.0' for LTS; See 'Options' for more details | 33 | 33 | distribution: 'graalvm' # See 'Supported distributions' for available options | 34 | 34 | github-token: ${{ secrets.GITHUB_TOKEN }} | 35 | 35 | - name: Example step | | 92 | 92 | - uses: actions/checkout@v6 | 93 | 93 | - uses: graalvm/setup-graalvm@v1 | 94 | 94 | with: | 95 | | - version: '25.1' | | 95 | + version: '25.3' | 96 | 96 | distribution: 'graalvm' | 97 | 97 | github-token: ${{ secrets.GITHUB_TOKEN }} | 98 | 98 | ``` | |
Collapse file Copy file name to clipboardExpand all lines: __tests__/gds.test.ts +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,10 +28,10 @@ afterAll(() => { | 28 | 28 | test('fetch artifacts', async () => { | 29 | 29 | let artifact | 30 | 30 | // Test innovation releases | 31 | | - for (const version of ['25.1', '25.1.3']) { | | 31 | + for (const version of ['25.3', '25.3.4.1']) { | 32 | 32 | artifact = await fetchArtifact(TEST_USER_AGENT, version, '25') | 33 | | - expect(artifact.id).toBe('FE09EC0A4D9244CA834F1777BCA30041') | 34 | | - expect(artifact.checksum).toBe('efcb8984be5f72ecf8615641bec720c825a6889957f0b98d95123f563ff77c86') | | 33 | + expect(artifact.id).toBe('47B3692F0EC54D22A1DAC450AD7225D1') | | 34 | + expect(artifact.checksum).toBe('814deac144a912035c4e824e05fa06a2e0c83821f0fb9d1084bc916e5eeef247') | 35 | 35 | } | 36 | 36 | // Test 25 LTS | 37 | 37 | artifact = await fetchArtifact(TEST_USER_AGENT, '25.0', '25') | |
Collapse file Copy file name to clipboardExpand all lines: __tests__/graalvm.test.ts +9Lines changed: 9 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -32,6 +32,15 @@ test('request invalid version/javaVersion', async () => { | 32 | 32 | } | 33 | 33 | }) | 34 | 34 |
| | 35 | +test('find innovation release', async () => { | | 36 | + const ghRelease = await graalvm.getGraalVMCEGitHubRelease('25.3.4.1') | | 37 | + expect(ghRelease.tag_name).toBe('graal-25.3.4.1') | | 38 | + expect(ghRelease.assets.length).toBe(8) | | 39 | + for (const asset of ghRelease.assets) { | | 40 | + expect(asset.name.includes('-25i3-')).toBe(true) | | 41 | + } | | 42 | +}) | | 43 | + | 35 | 44 | test('find version/javaVersion', async () => { | 36 | 45 | // Make sure the action can find the latest Java version for known major versions | 37 | 46 | for (const majorJavaVersion of ['17', '20']) { | |
Collapse file Copy file name to clipboardExpand all lines: dist/main.js +1-5Lines changed: 1 addition & 5 deletions Collapse file Copy file name to clipboardExpand all lines: src/graalvm.ts +2-6Lines changed: 2 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -72,7 +72,7 @@ export async function setUpGraalVMJDKCE(graalVMVersionOrDev: string, javaVersion | 72 | 72 | return downloadExtractAndCacheJDK(downloader, toolName, graalVMVersion) | 73 | 73 | } | 74 | 74 |
| 75 | | -async function getGraalVMCEGitHubRelease(graalVMVersion: string): Promise<c.LatestReleaseResponseData> { | | 75 | +export async function getGraalVMCEGitHubRelease(graalVMVersion: string): Promise<c.LatestReleaseResponseData> { | 76 | 76 | const releaseTag = await findReleaseTag(graalVMVersion) | 77 | 77 | return await getTaggedRelease(c.GRAALVM_GH_USER, c.GRAALVM_RELEASES_REPO, releaseTag) | 78 | 78 | } | @@ -102,11 +102,7 @@ export async function findLatestGraalVMCEVersion(graalVMVersion: string, tagPref | 102 | 102 | const versionNumberStartIndex = `refs/tags/${tagPrefix}`.length | 103 | 103 | for (const matchingRef of matchingRefs) { | 104 | 104 | const currentVersion = matchingRef.ref.substring(versionNumberStartIndex) | 105 | | - if (!semver.valid(currentVersion)) { | 106 | | - core.warning(`Skipping unexpected GraalVM CE release ${currentVersion}. ${c.ERROR_REQUEST}`) | 107 | | - continue | 108 | | - } | 109 | | - if (semver.gt(currentVersion, highestVersion)) { | | 105 | + if (semver.gt(semver.coerce(currentVersion) || lowestNonExistingVersion, highestVersion)) { | 110 | 106 | highestVersion = currentVersion | 111 | 107 | } | 112 | 108 | } | |
|