Skip to content

Commit 8ab91db

Browse files
committed
Build for more Java versions
1 parent 5bfa2af commit 8ab91db

File tree

1 file changed

+33
-1
lines changed

1 file changed

+33
-1
lines changed

.github/workflows/ci.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix:
2525
os: [ubuntu-latest]
2626
scala: [2.12.19, 2.13.13, 3.3.3]
27-
java: [temurin@11]
27+
java: [temurin@11, temurin@17, temurin@21]
2828
runs-on: ${{ matrix.os }}
2929
steps:
3030
- name: Checkout current branch (full)
@@ -40,6 +40,22 @@ jobs:
4040
java-version: 11
4141
cache: sbt
4242

43+
- name: Setup Java (temurin@17)
44+
if: matrix.java == 'temurin@17'
45+
uses: actions/setup-java@v4
46+
with:
47+
distribution: temurin
48+
java-version: 17
49+
cache: sbt
50+
51+
- name: Setup Java (temurin@21)
52+
if: matrix.java == 'temurin@21'
53+
uses: actions/setup-java@v4
54+
with:
55+
distribution: temurin
56+
java-version: 21
57+
cache: sbt
58+
4359
- name: Check that workflows are up to date
4460
run: sbt '++ ${{ matrix.scala }}' githubWorkflowCheck
4561

@@ -82,6 +98,22 @@ jobs:
8298
java-version: 11
8399
cache: sbt
84100

101+
- name: Setup Java (temurin@17)
102+
if: matrix.java == 'temurin@17'
103+
uses: actions/setup-java@v4
104+
with:
105+
distribution: temurin
106+
java-version: 17
107+
cache: sbt
108+
109+
- name: Setup Java (temurin@21)
110+
if: matrix.java == 'temurin@21'
111+
uses: actions/setup-java@v4
112+
with:
113+
distribution: temurin
114+
java-version: 21
115+
cache: sbt
116+
85117
- name: Download target directories (2.12.19)
86118
uses: actions/download-artifact@v4
87119
with:

0 commit comments

Comments
 (0)