Skip to content

Commit

Permalink
add JDK 22 to CI matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
SethTisue committed Apr 9, 2024
1 parent 1b75272 commit 3c854e1
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
23 changes: 22 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -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:
Expand Down
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 3c854e1

Please sign in to comment.