Merge pull request #351 from akv-platform/v-sdolin/issue-44
Add "Install multiple JDKs" README section
This commit is contained in:
commit
46f0194a3b
22
README.md
22
README.md
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue