-
Notifications
You must be signed in to change notification settings - Fork 90
39 lines (39 loc) · 1.03 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI
on:
pull_request:
push:
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
java: 8
distribution: zulu
scala: 3.x
- os: ubuntu-latest
java: 8
distribution: zulu
scala: 3.x
- os: ubuntu-latest
java: 8
distribution: zulu
scala: 2.12.x
runs-on: ${{ matrix.os }}
env:
JAVA_OPTS: -Xms800M -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=128M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms800M -Xmx2G -Xss2M -XX:ReservedCodeCacheSize=128M -Dfile.encoding=UTF-8
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: "${{ matrix.distribution }}"
java-version: "${{ matrix.java }}"
cache: "sbt"
- uses: sbt/setup-sbt@v1
- shell: bash
run: |
sbt -v clean "++${{ matrix.scala }}" compile || true
sleep 1
sbt -v "++${{ matrix.scala }}" test scripted