update V2 routes to Carrara #140
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |