diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9035022..ae8dc8d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,7 +24,12 @@ jobs: matrix: os: [ubuntu-latest, macos-latest] scala: [2.13.13] - java: [temurin@8, temurin@11, temurin@17, temurin@21] + java: + - temurin@8 + - temurin@11 + - temurin@17 + - temurin@21 + - temurin@22 runs-on: ${{ matrix.os }} steps: - name: Checkout current branch (full) @@ -64,6 +69,14 @@ jobs: java-version: 21 cache: sbt + - name: Setup Java (temurin@22) + if: matrix.java == 'temurin@22' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 22 + cache: sbt + - name: Check that workflows are up to date run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck @@ -127,6 +140,14 @@ jobs: java-version: 21 cache: sbt + - name: Setup Java (temurin@22) + if: matrix.java == 'temurin@22' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 22 + cache: sbt + - name: Download target directories (2.13.13) uses: actions/download-artifact@v4 with: diff --git a/build.sbt b/build.sbt index 489b5ef..cd4bcbd 100644 --- a/build.sbt +++ b/build.sbt @@ -20,7 +20,8 @@ inThisBuild(Seq[Setting[_]]( JavaSpec.temurin("8"), JavaSpec.temurin("11"), JavaSpec.temurin("17"), - JavaSpec.temurin("21") + JavaSpec.temurin("21"), + JavaSpec.temurin("22"), ), githubWorkflowTargetTags ++= Seq ("v*"), githubWorkflowPublishTargetBranches := Seq(