-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (39 loc) · 1.11 KB
/
ci.yml
File metadata and controls
48 lines (39 loc) · 1.11 KB
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
name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: coursier/setup-action@v1
with:
jvm: temurin:21
- name: Cache Coursier
uses: actions/cache@v4
with:
path: |
~/.cache/coursier
~/.ivy2/cache
key: ${{ runner.os }}-coursier-${{ hashFiles('**/build.mill', '**/.scalafmt.conf', '**/.scalafix.conf') }}
restore-keys: |
${{ runner.os }}-coursier-
# Note: out/ intentionally not cached - stale artifacts cause
# build issues and cache invalidation problems between Mill versions
- name: Cache Mill
uses: actions/cache@v4
with:
path: |
~/.mill
key: ${{ runner.os }}-mill-${{ hashFiles('**/build.mill') }}
restore-keys: |
${{ runner.os }}-mill-
- name: Check Formatting
run: ./mill __.checkFormat
- name: Compile
run: ./mill __.compile
- name: Test
run: ./mill -i __.test