-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.26 KB
/
kelpie.yaml
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
name: Kelpie
on: [push, pull_request, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
name: Build
strategy:
matrix:
java_version: [8, 11, 17, 21]
steps:
- uses: actions/checkout@v4
- name: Cache repository
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java_version }}
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Build Kelpie
run: ./gradlew build
- name: Install distribution of Kelpie
run: ./gradlew installDist
- name: Checkout Kelpie-Test
uses: actions/checkout@v4
with:
repository: scalar-labs/kelpie-test
path: kelpie-test
- name: Build Kelpie-Test:print-modules
working-directory: kelpie-test/print-modules
run: ${{ github.workspace }}/gradlew shadowJar
- name: Execute Kelpie-Test:print-modules
working-directory: kelpie-test
run: ${{ github.workspace }}/build/install/kelpie/bin/kelpie --config print-modules/config.toml