diff options
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 016b8e7..ee1174d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,19 +29,19 @@ jobs: fail-fast: false matrix: os: [ ubuntu-latest ] - java: [ 17, 11 ] + java: [ 21, 17, 11 ] experimental: [ false ] include: # Only test on macos and windows with a single recent JDK to avoid a # combinatorial explosion of test configurations. - os: macos-latest - java: 17 + java: 21 experimental: false - os: windows-latest - java: 17 + java: 21 experimental: false - os: ubuntu-latest - java: 18-ea + java: EA experimental: true runs-on: ${{ matrix.os }} continue-on-error: ${{ matrix.experimental }} @@ -52,7 +52,15 @@ jobs: access_token: ${{ github.token }} - name: 'Check out repository' uses: actions/checkout@v2 + - name: 'Set up JDK ${{ matrix.java }} from jdk.java.net' + if: ${{ matrix.java == 'EA' }} + uses: oracle-actions/setup-java@v1 + with: + website: jdk.java.net + release: ${{ matrix.java }} + cache: 'maven' - name: 'Set up JDK ${{ matrix.java }}' + if: ${{ matrix.java != 'EA' }} uses: actions/setup-java@v2 with: java-version: ${{ matrix.java }} |