From ed021b2b03b7fd4dc3ac1b94e6456bc18332f8d5 Mon Sep 17 00:00:00 2001 From: philippus Date: Fri, 23 Aug 2024 17:04:16 -0500 Subject: [PATCH] Add java 21 to build matrix --- .github/workflows/ci.yml | 10 +++++++++- build.sbt | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a70b65..6cfb292 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: matrix: os: [ubuntu-latest] scala: [2.12.19] - java: [temurin@8, temurin@11, temurin@17] + java: [temurin@8, temurin@11, temurin@17, temurin@21] runs-on: ${{ matrix.os }} steps: - name: Checkout current branch (full) @@ -55,6 +55,14 @@ jobs: java-version: 17 cache: sbt + - name: Setup Java (temurin@21) + if: matrix.java == 'temurin@21' + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + cache: sbt + - name: Setup sbt uses: sbt/setup-sbt@v1 diff --git a/build.sbt b/build.sbt index 202e92a..252a957 100644 --- a/build.sbt +++ b/build.sbt @@ -14,7 +14,7 @@ lazy val root = project crossScalaVersions := scalaVersions ) -ThisBuild / githubWorkflowJavaVersions := Seq("8", "11", "17").map(JavaSpec.temurin) +ThisBuild / githubWorkflowJavaVersions := Seq("8", "11", "17", "21").map(JavaSpec.temurin) ThisBuild / githubWorkflowScalaVersions := scalaVersions ThisBuild / githubWorkflowBuildPostamble := Seq( // This runs the template with the default parameters, and runs test within the templated app.