-
Notifications
You must be signed in to change notification settings - Fork 1
48 lines (41 loc) · 1.11 KB
/
java.yml
File metadata and controls
48 lines (41 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: Java
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
nativeRunId:
description: "Optional LadybugDB/ladybug Java native library workflow run ID"
required: false
type: string
jobs:
build-and-test:
name: Build and test
strategy:
matrix:
runner: [ubuntu-24.04, ubuntu-24.04-arm, macos-latest]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: "21"
- name: Download native libraries
env:
GH_TOKEN: ${{ github.token }}
LBUG_JAVA_NATIVE_RUN_ID: ${{ inputs.nativeRunId }}
run: ./download-native-libs.sh
- name: Prepare test datasets
run: |
git clone --depth 1 https://github.com/ladybugdb/dataset.git ./dataset
- name: Build
env:
SKIP_CMAKE_BUILD: "true"
run: ./gradlew build -x test
- name: Test
env:
SKIP_CMAKE_BUILD: "true"
run: ./gradlew test