Skip to content

Commit 6ffb7cb

Browse files
committed
Update GitHub actions workflow for Java 21
1 parent 5e598e0 commit 6ffb7cb

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ on:
44
push:
55
workflow_dispatch:
66

7-
env:
8-
LIBERICA_URL: https://download.bell-sw.com/java/17.0.3+7/bellsoft-jdk17.0.3+7-linux-amd64-full.tar.gz
9-
107
jobs:
118
build-and-test:
129
runs-on: ubuntu-latest
1310
steps:
14-
- uses: actions/checkout@v2
15-
- uses: olafurpg/setup-scala@v10
11+
- uses: actions/setup-java@v5
1612
with:
17-
java-version: liberica@17=tgz+${{ env.LIBERICA_URL }}
18-
- run: sbt -v update compile
19-
- run: sbt -v test
13+
distribution: zulu
14+
java-version: 21.0.2
15+
java-package: jdk+fx
16+
cache: sbt
17+
18+
- uses: sbt/setup-sbt@v1
19+
20+
- name: Build and Test
21+
run: |
22+
sbt -v update compile
23+
sbt -v test

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.7.2
1+
sbt.version=1.10.1

0 commit comments

Comments
 (0)