-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (42 loc) · 1.2 KB
/
github_actions.yml
File metadata and controls
47 lines (42 loc) · 1.2 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
name: TileDB-Cloud-Java
on:
workflow_dispatch:
push:
tags:
- '*'
branches:
- master
- test-*
pull_request:
jobs:
Examples:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: 17
check-latest: true
- name: assemble
shell: bash
run: |
unset SYSTEM
./gradlew assemble
- name: Run examples
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
run: |
jar_relpath="$(find build/libs -type f | grep -v -e javadoc -e sources -e default)"
jar="$(readlink -f "$jar_relpath")"
cd src/main/java/examples
javac -cp "$jar" Examples.java
# arrow-java requires the --add-opens flag in Java ≥16; see https://arrow.apache.org/docs/java/install.html#id3
java --add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED -cp "$jar" examples.Examples
Release:
if: startsWith(github.ref, 'refs/tags/')
needs: [Examples]
uses: ./.github/workflows/publish.yml
secrets: inherit