Skip to content

Commit ed624ee

Browse files
committed
Update GitHub actions workflow for Java 21
1 parent e4ecc68 commit ed624ee

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/main.yml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,23 @@
1-
name: build-check
1+
name: build-and-test
22

33
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:
11-
build-check:
8+
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
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)