Skip to content

Commit

Permalink
Switches GitHub Actions over to Oracle's setup-java to get reliable a…
Browse files Browse the repository at this point in the history
…ccess to EA versions
  • Loading branch information
jqno committed Oct 24, 2023
1 parent ff9893a commit d8d89e8
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,37 +19,31 @@ jobs:
experimental: false
cache-id: "jdk8"
java: 8
dist: temurin
flags: ""
- title: "Supported JDK 11"
experimental: false
cache-id: "jdk11"
java: 11
dist: temurin
flags: ""
- title: "Supported JDK 17"
experimental: false
cache-id: "jdk17"
java: 17
dist: temurin
flags: ""
- title: "Supported JDK 21"
experimental: false
cache-id: "jdk21"
java: 21
dist: zulu
flags: ""
- title: "Experimental JDK EA (simplified)"
experimental: false
experimental: true
cache-id: "jdk-ea-simple"
java: "22-ea"
dist: zulu
java: "EA"
flags: "-Dexperimental -DdisableStaticAnalysis"
- title: "Experimental JDK EA (full)"
experimental: true
cache-id: "jdk-ea-full"
java: "22-ea"
dist: zulu
java: "EA"
flags: ""
runs-on: ubuntu-latest
steps:
Expand All @@ -69,10 +63,9 @@ jobs:
${{ runner.os }}-mvn-${{ matrix.cache-id }}
- name: 'Set up JDK ${{ matrix.java }}'
if: ${{ !(matrix.experimental && github.event_name == 'pull_request') }}
uses: actions/setup-java@v3
uses: oracle-actions/setup-java@v1
with:
distribution: ${{ matrix.dist }}
java-version: ${{ matrix.java }}
release: ${{ matrix.java }}
- name: 'Display JDK version'
if: ${{ !(matrix.experimental && github.event_name == 'pull_request') }}
run: java -version
Expand Down

0 comments on commit d8d89e8

Please sign in to comment.