Skip to content

Commit

Permalink
Merge pull request #351 from akv-platform/v-sdolin/issue-44
Browse files Browse the repository at this point in the history
Add "Install multiple JDKs" README section
  • Loading branch information
marko-zivic-93 authored Jul 15, 2022
2 parents 2c7a487 + c69efbe commit 46f0194
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,28 @@ jobs:
- run: java -cp java HelloWorldApp
```

### Install multiple JDKs
```yaml
steps:
- uses: actions/setup-java@v3
with:
distribution: '<distribution>'
java-version: 8
- run: echo "JAVA_8=$JAVA_HOME" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
distribution: '<distribution>'
java-version: 11
- run: echo "JAVA_11=$JAVA_HOME" >> $GITHUB_ENV
- uses: actions/setup-java@v3
with:
distribution: '<distribution>'
java-version: 15
- run: echo "JAVA_15=$JAVA_HOME" >> $GITHUB_ENV
```

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

0 comments on commit 46f0194

Please sign in to comment.