Skip to content

More and better tests #85

More and better tests

More and better tests #85

Workflow file for this run

name: Run All Tests
on:
pull_request:
workflow_dispatch:
permissions: {}
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: "Check out PR branch"
uses: actions/checkout@v4
with:
submodules: recursive
persist-credentials: false
fetch-depth: 0
- name: "Cache"
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
./target
key: ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- name: "Set up JDK"
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: "Build native libraries"
run: bash ./scripts/build-linux-x86_64.sh
- name: "Run JVM tests"
run: ./gradlew test
- name: "Build JVM examples"
# Run even if "Run JVM tests" step failed
if: ${{ always() }}
run: ./gradlew :examples:build