From 860f60056505705214d223b91ed7a30f173f6142 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 4 May 2022 13:23:54 +0200 Subject: [PATCH] Add Amazon Corretto example and fix links (#325) --- README.md | 2 ++ docs/advanced-usage.md | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/README.md b/README.md index a227d7c..df48820 100644 --- a/README.md +++ b/README.md @@ -158,6 +158,8 @@ jobs: - [Adopt](docs/advanced-usage.md#Adopt) - [Zulu](docs/advanced-usage.md#Zulu) - [Liberica](docs/advanced-usage.md#Liberica) + - [Microsoft](docs/advanced-usage.md#Microsoft) + - [Amazon Corretto](docs/advanced-usage.md#Amazon-Corretto) - [Installing custom Java package type](docs/advanced-usage.md#Installing-custom-Java-package-type) - [Installing custom Java architecture](docs/advanced-usage.md#Installing-custom-Java-architecture) - [Installing custom Java distribution from local file](docs/advanced-usage.md#Installing-Java-from-local-file) diff --git a/docs/advanced-usage.md b/docs/advanced-usage.md index 40f8e9c..befe52d 100644 --- a/docs/advanced-usage.md +++ b/docs/advanced-usage.md @@ -3,6 +3,9 @@ - [Eclipse Temurin](#Eclipse-Temurin) - [Adopt](#Adopt) - [Zulu](#Zulu) + - [Liberica](#Liberica) + - [Microsoft](#Microsoft) + - [Amazon Corretto](#Amazon-Corretto) - [Installing custom Java package type](#Installing-custom-Java-package-type) - [Installing custom Java architecture](#Installing-custom-Java-architecture) - [Installing custom Java distribution from local file](#Installing-Java-from-local-file) @@ -76,6 +79,19 @@ steps: - run: java -cp java HelloWorldApp ``` +### Amazon Corretto +**NOTE:** Amazon Corretto only supports the major version specification. + +```yaml +steps: +- uses: actions/checkout@v3 +- uses: actions/setup-java@v3 + with: + distribution: 'corretto' + java-version: '11' +- run: java -cp java HelloWorldApp +``` + ## Installing custom Java package type ```yaml steps: