Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "Install multiple JDKs" README section #351

Merged
merged 4 commits into from
Jul 15, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Expand Up @@ -154,6 +154,25 @@ jobs:
- run: java -cp java HelloWorldApp
```

### Install multiple JDKs
```yaml
steps:
- uses: actions/setup-java@v1
dsame marked this conversation as resolved.
Show resolved Hide resolved
with:
java-version: 8
dsame marked this conversation as resolved.
Show resolved Hide resolved
- run: echo "JAVA_8=$JAVA_HOME" >> $GITHUB_ENV
dsame marked this conversation as resolved.
Show resolved Hide resolved

- uses: actions/setup-java@v1
with:
java-version: 11
- run: echo "JAVA_11=$JAVA_HOME" >> $GITHUB_ENV
dsame marked this conversation as resolved.
Show resolved Hide resolved

- uses: actions/setup-java@v1
with:
java-version: 15
- run: echo "JAVA_15=$JAVA_HOME" >> $GITHUB_ENV
dsame marked this conversation as resolved.
Show resolved Hide resolved
```

### Advanced
- [Selecting a Java distribution](docs/advanced-usage.md#Selecting-a-Java-distribution)
- [Eclipse Temurin](docs/advanced-usage.md#Eclipse-Temurin)
Expand Down