mirror of
https://github.com/actions/setup-java.git
synced 2025-06-29 04:24:14 +00:00
Fix Broken URLs, Add Additional Package Types
This commit is contained in:
parent
72649109a1
commit
8e2bc8fd07
3 changed files with 127 additions and 30 deletions
|
@ -173,7 +173,8 @@ steps:
|
|||
```
|
||||
|
||||
### JetBrains
|
||||
**NOTE:** JetBrains only provides jdk and is only available for LTS versions 11 or later. JCEF is not bundled with this distribution.
|
||||
|
||||
**NOTE:** JetBrains is only available for LTS versions on 11 or later.
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
|
@ -194,12 +195,22 @@ steps:
|
|||
- uses: actions/setup-java@v4
|
||||
with:
|
||||
distribution: 'jetbrains'
|
||||
java-version: '11'
|
||||
java-version: '17'
|
||||
package-type: 'jdk' # optional (jdk, jre, jdk+jcef, jre+jcef, jdk+ft, or jre+ft) - defaults to jdk
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- run: java -cp java HelloWorldApp
|
||||
```
|
||||
|
||||
JetBrains Package Types (as shown in the [releases page](https://github.com/JetBrains/JetBrainsRuntime/releases/)):
|
||||
|
||||
- `jdk` - JBRSDK
|
||||
- `jre` - JBR (Vanilla)
|
||||
- `jdk+jcef` - JBRSDK with JCEF
|
||||
- `jre+jcef` - JBR with JCEF
|
||||
- `jdk+ft` - JBRSDK (FreeType)
|
||||
- `jre+ft` - JBR (FreeType)
|
||||
|
||||
### GraalVM
|
||||
**NOTE:** Oracle GraalVM is only available for JDK 17 and later.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue