oracle-actions / setup-java

GitHub Action to download and install Oracle's Java Development Kit builds
Universal Permissive License v1.0
62 stars 11 forks source link

How do you download a specific EA build? #85

Closed fbricon closed 2 months ago

fbricon commented 2 months ago

If you do the following:

      - name: Set Up Java
        uses: oracle-actions/setup-java@v1
        with:
          website: jdk.java.net
          release: EA

Then the latest JDK 24 EA build will be downloaded. But I want to use 23 EA. Adding version: 23 doesn't work.

delabassee commented 2 months ago

@fbricon What is your use case to use a specific version of an "older" EA build?

fbricon commented 2 months ago

I'm trying to test my build against Java 23. It's not released yet.

sormuras commented 2 months ago

See

for a more stable variant of an EA build:

      - name: 'Set up stable EA JDK'
        uses: oracle-actions/setup-java@v1
        with:
          website: jdk.java.net
          release: ea
          version: stable

Does this help?

sormuras commented 2 months ago

Adding version: 23 doesn't work.

Setting release: 23 works for the entire cycle of JDK 23 builds, no matter what phase it is in.

fbricon commented 2 months ago

OK this worked for me, thanks!

  - name: Set Up Java
    uses: oracle-actions/setup-java@v1
    with:
      website: jdk.java.net
      release: 23