Skip to content

Remove jna.library.path from surefire config #13

Remove jna.library.path from surefire config

Remove jna.library.path from surefire config #13

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build & Test (${{ matrix.os }}, Java ${{ matrix.java }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [namespace-profile-linux-amd64, namespace-profile-linux-arm64, namespace-profile-macos-26-1, namespace-profile-windows-amd64]
java: ['11', '17', '21']
steps:
- name: Checkout (Windows)
if: contains(matrix.os, 'windows')
uses: actions/checkout@v4
with:
submodules: recursive
- name: Checkout (non-Windows)
if: ${{ !contains(matrix.os, 'windows') }}
uses: namespacelabs/nscloud-checkout-action@v8
with:
submodules: recursive
- name: Set up Maven and Rust cache (non-Windows)
if: ${{ !contains(matrix.os, 'windows') }}
uses: namespacelabs/nscloud-cache-action@v1
with:
cache: |
maven
rust
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: ${{ contains(matrix.os, 'windows') && 'maven' || '' }}
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Build with Maven
working-directory: java
shell: bash
run: mvn -B compile
- name: Run tests
working-directory: java
shell: bash
run: mvn -B test
lint:
name: Lint
runs-on: namespace-profile-linux-amd64
steps:
- uses: namespacelabs/nscloud-checkout-action@v8
- name: Set up Maven cache
uses: namespacelabs/nscloud-cache-action@v1
with:
cache: maven
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
- name: Check code formatting
working-directory: java
run: mvn -B checkstyle:check || true # Non-blocking for now