-
-
Notifications
You must be signed in to change notification settings - Fork 99
51 lines (49 loc) · 1.16 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: build
on:
push:
paths-ignore:
- 'jsoniter-scala-examples/**'
- '**.md'
branches-ignore:
- "gh-pages"
pull_request:
paths-ignore:
- 'jsoniter-scala-examples/**'
- '**.md'
branches-ignore:
- "gh-pages"
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
java:
- 11
- 21
os:
- ubuntu-latest
- macos-latest
fail-fast: false
steps:
- name: Configure git
run: "git config --global core.autocrlf false"
shell: bash
- name: Checkout sources
uses: actions/checkout@v4
with:
fetch-depth: 300
- name: Fetch tags
run: git fetch --depth=300 origin +refs/tags/*:refs/tags/*
- name: Cache SBT deps
uses: coursier/cache-action@v6
- name: Setup Scala with SBT
uses: coursier/setup-action@v1
with:
apps: sbt
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 16
- name: Test and Check Binary Compatibility
run: "sbt -batch +test +mimaReportBinaryIssues"
shell: bash