This action installs any candidate via sdkman. If inputs are provided then the
sdk install <candidate> <version> command will be executed. Otherwise, the sdk env install command will be executed.
Optional The name of the candidate to install.
Optional The version of the candidate to install.
Filename of the downloaded archive.
Install a specific candidate in using Windows runner:
- uses: sdkman/sdkman-action@v1
id: sdkman
with:
candidate: java
version: 15.0.0-amzn
- uses: actions/setup-java@v3
id: setup-java
with:
distribution: 'jdkfile'
java-version: 15.0.0
jdkFile: ${{ steps.sdkman.outputs.file }}
- run: java -versionInstall a specific candidate in Linux or macOS runner:
- uses: sdkman/sdkman-action@v1
id: sdkman
with:
candidate: java
version: 15.0.0-amzn
- run: java -versionInstall candidates from .sdkmanrc in Linux or macOS runner:
- uses: sdkman/sdkman-action@v1
id: sdkman
- run: java -version