Skip to content

Commit 7abcd63

Browse files
committed
Set Java version to Temurin 8
1 parent 3973038 commit 7abcd63

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
matrix:
2626
os: [ubuntu-latest]
2727
scala: [2.12.15, 2.13.7]
28-
java: [adopt@1.8]
28+
java: [temurin@8]
2929
platform: [jvm, js, native]
3030
runs-on: ${{ matrix.os }}
3131
steps:
@@ -34,10 +34,12 @@ jobs:
3434
with:
3535
fetch-depth: 0
3636

37-
- name: Setup Java and Scala
38-
uses: olafurpg/setup-scala@v13
37+
- name: Setup Java (temurin@8)
38+
if: matrix.java == 'temurin@8'
39+
uses: actions/setup-java@v2
3940
with:
40-
java-version: ${{ matrix.java }}
41+
distribution: temurin
42+
java-version: 8
4143

4244
- name: Cache sbt
4345
uses: actions/cache@v2
@@ -76,18 +78,20 @@ jobs:
7678
matrix:
7779
os: [ubuntu-latest]
7880
scala: [2.13.7]
79-
java: [adopt@1.8]
81+
java: [temurin@8]
8082
runs-on: ${{ matrix.os }}
8183
steps:
8284
- name: Checkout current branch (full)
8385
uses: actions/checkout@v2
8486
with:
8587
fetch-depth: 0
8688

87-
- name: Setup Java and Scala
88-
uses: olafurpg/setup-scala@v13
89+
- name: Setup Java (temurin@8)
90+
if: matrix.java == 'temurin@8'
91+
uses: actions/setup-java@v2
8992
with:
90-
java-version: ${{ matrix.java }}
93+
distribution: temurin
94+
java-version: 8
9195

9296
- name: Cache sbt
9397
uses: actions/cache@v2

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ThisBuild / mimaFailOnNoPrevious := false
1818
ThisBuild / githubWorkflowBuildPreamble := Seq(
1919
WorkflowStep.Run(List("sudo apt install clang libunwind-dev libgc-dev libre2-dev"))
2020
)
21-
ThisBuild / githubWorkflowJavaVersions := Seq("[email protected]")
21+
ThisBuild / githubWorkflowJavaVersions := Seq(JavaSpec.temurin("8"))
2222
ThisBuild / githubWorkflowBuildMatrixAdditions +=
2323
"platform" -> List("jvm", "js", "native")
2424

0 commit comments

Comments
 (0)