-
Notifications
You must be signed in to change notification settings - Fork 67
36 lines (36 loc) · 998 Bytes
/
build.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
name: CI
on:
push:
branches:
- main
pull_request:
jobs:
build_scala2_12:
runs-on: ubuntu-latest
env:
# define Java options for both official sbt and sbt-extras
JAVA_OPTS: -Xms2048M -Xmx2048M -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
JVM_OPTS: -Xms2048M -Xmx2048M -Xss2M -XX:ReservedCodeCacheSize=256M -Dfile.encoding=UTF-8
strategy:
fail-fast: false
matrix:
java-version: [ 8, 17 ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{matrix.java-version}}
- name: Coursier cache
uses: coursier/cache-action@v6
- name: Build and test
shell: bash
run: sbt -v clean scalafmtCheckAll headerCheck test scripted
- name: Build site
if: ${{ matrix.java-version == 8 }}
shell: bash
run: sbt -v makeSite