Skip to content

Commit f6c9858

Browse files
committed
Update GitHub actions workflow for Java 21
1 parent 5391b7e commit f6c9858

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,29 @@ name: build-and-test
22

33
on:
44
push:
5-
pull_request:
65
workflow_dispatch:
76

8-
env:
9-
LIBERICA_URL: https://download.bell-sw.com/java/17.0.5+8/bellsoft-jdk17.0.5+8-linux-amd64-full.tar.gz
10-
117
jobs:
128
build-and-test:
139
runs-on: ubuntu-latest
1410
steps:
15-
- uses: actions/checkout@v3
16-
17-
- uses: olafurpg/setup-scala@v13
11+
- uses: actions/setup-java@v5
1812
with:
19-
java-version: liberica@17=tgz+${{ env.LIBERICA_URL }}
13+
distribution: zulu
14+
java-version: 21.0.2
15+
java-package: jdk+fx
16+
cache: sbt
17+
18+
- uses: sbt/setup-sbt@v1
2019

21-
- uses: actions/setup-python@v4
20+
- uses: actions/setup-python@v6
2221
with:
23-
python-version: '3.x'
22+
python-version: '3.10'
2423

2524
- name: Install Python 3 libraries
2625
run: pip3 install numpy scikit-learn
2726

28-
- run: sbt -v update compile
29-
- run: sbt -v test
27+
- name: Build and Test
28+
run: |
29+
sbt -v update compile
30+
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)