mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
name: Java Tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
tags:
|
|
- v*
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
working-directory: bindings/java
|
|
CARGO_INCREMENTAL: "0"
|
|
CARGO_NET_RETRY: 10
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: blacksmith-4vcpu-ubuntu-2404
|
|
timeout-minutes: 30
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: ${{ env.working-directory }}
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Rust(stable)
|
|
uses: dtolnay/rust-toolchain@stable
|
|
|
|
- name: Setup mold linker
|
|
uses: rui314/setup-mold@v1
|
|
|
|
- name: Rust cache
|
|
uses: Swatinem/rust-cache@v2
|
|
with:
|
|
prefix-key: "v1-rust"
|
|
cache-on-failure: true
|
|
|
|
- name: Setup sccache
|
|
uses: mozilla-actions/sccache-action@v0.0.9
|
|
|
|
- name: Set up JDK
|
|
uses: useblacksmith/setup-java@v5
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '8'
|
|
|
|
- name: Run Java tests
|
|
env:
|
|
SCCACHE_GHA_ENABLED: "true"
|
|
RUSTC_WRAPPER: "sccache"
|
|
run: make test
|