Skip to content

feat: refactor TileDBClient to support versioned API clients #145

feat: refactor TileDBClient to support versioned API clients

feat: refactor TileDBClient to support versioned API clients #145

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