Skip to content

Commit b08e9e8

Browse files
committed
add JDK 17 to crossbuild
1 parent d0cc97d commit b08e9e8

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/validate.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
scala-version:
16+
scala:
1717
- 2.12.5
1818
- 2.12.6
1919
- 2.12.7
@@ -34,24 +34,25 @@ jobs:
3434
- 2.13.6
3535
- 2.13.7
3636
- 2.13.8
37-
jdk-version: [1.8, 1.11]
37+
java: [8, 11, 17]
3838

3939
steps:
4040
- name: Checkout
4141
uses: actions/checkout@v2
4242
with:
4343
fetch-depth: 0
4444

45-
- name: Set up JDK ${{ matrix.jdk-version }}
46-
uses: olafurpg/setup-scala@v10
45+
- name: Set up JDK ${{matrix.java}}
46+
uses: actions/setup-java@v2
4747
with:
48-
java-version: adopt@${{ matrix.jdk-version }}
48+
distribution: temurin
49+
java-version: ${{matrix.java}}
4950

5051
- name: Cache Coursier cache
51-
uses: coursier/cache-action@v6.2
52+
uses: coursier/cache-action@v6
5253

53-
- name: Compile and test for JDK ${{ matrix.jdk-version }}, Scala ${{ matrix.scala-version }}
54-
run: sbt -J-XX:ReservedCodeCacheSize=256M ++${{ matrix.scala-version }} test
54+
- name: Compile and test: JDK ${{matrix.java}}, Scala ${{matrix.scala}}
55+
run: sbt ++${{matrix.scala}} test
5556

5657
publish:
5758
name: Publish to Maven Central
@@ -66,12 +67,13 @@ jobs:
6667
fetch-depth: 0
6768

6869
- name: Set up JDK 8
69-
uses: olafurpg/setup-scala@v10
70+
uses: actions/setup-java@v2
7071
with:
71-
java-version: [email protected]
72+
distribution: temurin
73+
java-version: 8
7274

7375
- name: Cache Coursier cache
74-
uses: coursier/cache-action@v6.2
76+
uses: coursier/cache-action@v6
7577

7678
- name: Publish
7779
run: sbt ci-release

0 commit comments

Comments
 (0)