Skip to content

Commit b8dc5fc

Browse files
zakkakfniephaus
authored andcommitted
Get latest mandrel release if version not specified
Update doc.
1 parent 1c219f5 commit b8dc5fc

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

.github/workflows/test.yml

+4
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,10 @@ jobs:
199199
java-version: '17'
200200
distribution: '' # test empty distribution for backward compatibility
201201
os: ubuntu-latest
202+
- version: '' # test with no version
203+
java-version: '21'
204+
distribution: 'mandrel'
205+
os: ubuntu-latest
202206
steps:
203207
- uses: actions/checkout@v4
204208
- name: Run setup-graalvm action

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
| `native-image-job-reports` *) | `'false'` | If set to `'true'`, post a job summary containing a Native Image build report. |
177177
| `native-image-pr-reports` *) | `'false'` | If set to `'true'`, post a comment containing a Native Image build report on pull requests. Requires `write` permissions for the [`pull-requests` scope][gha-permissions]. |
178178
| `components` | `''` | Comma-separated list of GraalVM components (e.g., `native-image` or `ruby,nodejs`) that will be installed by the [GraalVM Updater][gu]. |
179-
| `version` | `''` | `X.Y.Z` (e.g., `22.3.0`) for a specific [GraalVM release][releases] up to `22.3.2`<br>`mandrel-X.Y.Z` (e.g., `mandrel-21.3.0.0-Final`) for a specific [Mandrel release][mandrel-releases],<br>`mandrel-latest` for [latest Mandrel stable release][mandrel-stable]. |
179+
| `version` | `''` | `X.Y.Z` (e.g., `22.3.0`) for a specific [GraalVM release][releases] up to `22.3.2`<br>`mandrel-X.Y.Z.W` or `X.Y.Z.W-Final` (e.g., `mandrel-21.3.0.0-Final` or `21.3.0.0-Final`) for a specific [Mandrel release][mandrel-releases],<br>`mandrel-latest` or `latest` for the latest Mandrel stable release. |
180180
| `gds-token` | `''` | Download token for the GraalVM Download Service. If a non-empty token is provided, the action will set up GraalVM Enterprise Edition (see [GraalVM EE template](#template-for-graalvm-enterprise-edition)). |
181181

182182
**) Make sure that Native Image is used only once per build job. Otherwise, the report is only generated for the last Native Image build.*

dist/main/index.js

+3-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/mandrel.ts

+2
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ export async function setUpMandrel(
2121
const version = stripMandrelNamespace(mandrelVersion)
2222
let mandrelHome
2323
switch (version) {
24+
case '':
25+
// fetch latest if no version is specified
2426
case 'latest':
2527
mandrelHome = await setUpMandrelLatest(javaVersion)
2628
break

0 commit comments

Comments
 (0)