Skip to content

Commit 8060406

Browse files
barryoneillmzuehlke
authored andcommitted
add temurin 21 to CI
1 parent c6a6d03 commit 8060406

File tree

3 files changed

+30
-3
lines changed

3 files changed

+30
-3
lines changed

.github/workflows/ci.yml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
matrix:
3030
os: [ubuntu-latest]
3131
scala: [2.13]
32-
java: [temurin@17, temurin@11]
32+
java: [temurin@21, temurin@17, temurin@11]
3333
runs-on: ${{ matrix.os }}
3434
timeout-minutes: 60
3535
steps:
@@ -42,6 +42,19 @@ jobs:
4242
with:
4343
fetch-depth: 0
4444

45+
- name: Setup Java (temurin@21)
46+
id: setup-java-temurin-21
47+
if: matrix.java == 'temurin@21'
48+
uses: actions/setup-java@v4
49+
with:
50+
distribution: temurin
51+
java-version: 21
52+
cache: sbt
53+
54+
- name: sbt update
55+
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
56+
run: sbt +update
57+
4558
- name: Setup Java (temurin@17)
4659
id: setup-java-temurin-17
4760
if: matrix.java == 'temurin@17'
@@ -103,7 +116,7 @@ jobs:
103116
strategy:
104117
matrix:
105118
os: [ubuntu-latest]
106-
java: [temurin@17]
119+
java: [temurin@21]
107120
runs-on: ${{ matrix.os }}
108121
steps:
109122
- name: Install sbt
@@ -115,6 +128,19 @@ jobs:
115128
with:
116129
fetch-depth: 0
117130

131+
- name: Setup Java (temurin@21)
132+
id: setup-java-temurin-21
133+
if: matrix.java == 'temurin@21'
134+
uses: actions/setup-java@v4
135+
with:
136+
distribution: temurin
137+
java-version: 21
138+
cache: sbt
139+
140+
- name: sbt update
141+
if: matrix.java == 'temurin@21' && steps.setup-java-temurin-21.outputs.cache-hit == 'false'
142+
run: sbt +update
143+
118144
- name: Setup Java (temurin@17)
119145
id: setup-java-temurin-17
120146
if: matrix.java == 'temurin@17'

.mergify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ pull_request_rules:
2121
- or:
2222
- author=scala-steward
2323
- author=scala-steward-dev
24+
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@21)
2425
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@17)
2526
- status-success=Build and Test (ubuntu-latest, 2.13, temurin@11)
2627
actions:

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ ThisBuild / githubWorkflowPublish := Seq(
5050
name = Some("Publish Docker image")
5151
)
5252
)
53-
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec(Temurin, "17"), JavaSpec(Temurin, "11"))
53+
ThisBuild / githubWorkflowJavaVersions := Seq("21", "17", "11").map(JavaSpec(Temurin, _))
5454
ThisBuild / githubWorkflowBuild :=
5555
Seq(
5656
WorkflowStep

0 commit comments

Comments
 (0)