Skip to content

Commit 1053d76

Browse files
authored
Merge pull request #147 from Philippus/add-java-21
Add java 21 to build matrix
2 parents 60eee11 + ed021b2 commit 1053d76

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

.github/workflows/ci.yml

+9-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
matrix:
2424
os: [ubuntu-latest]
2525
scala: [2.12.19]
26-
java: [temurin@8, temurin@11, temurin@17]
26+
java: [temurin@8, temurin@11, temurin@17, temurin@21]
2727
runs-on: ${{ matrix.os }}
2828
steps:
2929
- name: Checkout current branch (full)
@@ -55,6 +55,14 @@ jobs:
5555
java-version: 17
5656
cache: sbt
5757

58+
- name: Setup Java (temurin@21)
59+
if: matrix.java == 'temurin@21'
60+
uses: actions/setup-java@v4
61+
with:
62+
distribution: temurin
63+
java-version: 21
64+
cache: sbt
65+
5866
- name: Setup sbt
5967
uses: sbt/setup-sbt@v1
6068

build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ lazy val root = project
1414
crossScalaVersions := scalaVersions
1515
)
1616

17-
ThisBuild / githubWorkflowJavaVersions := Seq("8", "11", "17").map(JavaSpec.temurin)
17+
ThisBuild / githubWorkflowJavaVersions := Seq("8", "11", "17", "21").map(JavaSpec.temurin)
1818
ThisBuild / githubWorkflowScalaVersions := scalaVersions
1919
ThisBuild / githubWorkflowBuildPostamble := Seq(
2020
// This runs the template with the default parameters, and runs test within the templated app.

0 commit comments

Comments
 (0)