-
-
Notifications
You must be signed in to change notification settings - Fork 29
99 lines (81 loc) · 2.16 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
name: Tests
on: [push, pull_request]
jobs:
test:
strategy:
fail-fast: false
matrix:
java-version: ["8", "11", "17", "21"]
os: [ubuntu, macOS, windows]
exclude:
- java-version: "8"
os: macOS
runs-on: ${{ matrix.os }}-latest
name: test-${{ matrix.os }}-temurin@${{ matrix.java-version }}
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: Prepare java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: ${{ matrix.java-version }}
- name: "Restore Cache"
uses: "actions/cache@v4"
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: "${{ runner.os }}-deps-${{ hashFiles('deps.edn','bb.edn') }}"
- name: Setup Babashka
uses: DeLaGuardo/[email protected]
with:
bb: 'latest'
- name: Tools Versions
run: |
java -version
bb --version
- name: Run bb tests
run: |
bb test:bb
- name: Run JVM tests
run: |
bb test:jvm :clj-all
test-native:
strategy:
fail-fast: false
matrix:
os: [ubuntu, macOS, windows]
distribution: [graalvm, graalvm-community]
runs-on: ${{ matrix.os }}-latest
name: test-${{ matrix.os }}-${{ matrix.distribution}}-native
steps:
- name: "Checkout code"
uses: "actions/checkout@v4"
- name: Install GraalVM
uses: graalvm/setup-graalvm@v1
with:
# match version babashka uses (or will soon use)
java-version: '22'
distribution: ${{ matrix.distribution }}
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: "Restore Cache"
uses: "actions/cache@v4"
with:
path: |
~/.m2/repository
~/.gitlibs
~/.deps.clj
key: "${{ runner.os }}-deps-${{ hashFiles('deps.edn','bb.edn') }}"
- name: Setup Babashka
uses: DeLaGuardo/[email protected]
with:
bb: 'latest'
- name: Tools Versions
run: |
java -version
bb --version
- name: Run tests
run: |
bb test:native