This repository has been archived by the owner on Jun 13, 2024. It is now read-only.
fix(deps): update all dependencies #27
Workflow file for this run
This file contains 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: Java Bindings CI | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths: | |
- 'packages/rust-core/common/**' | |
- 'packages/rust-core/java/**' | |
- 'packages/rust-core/Cargo.toml' | |
- '.github/workflows/java-bindings-ci.yml' | |
- '.github/workflows/java-bindings-build-common.yml' | |
push: | |
branches: [main] | |
paths: | |
- 'packages/rust-core/common/**' | |
- 'packages/rust-core/java/**' | |
- 'packages/rust-core/Cargo.toml' | |
- '.github/workflows/java-bindings-ci.yml' | |
- '.github/workflows/java-bindings-build-common.yml' | |
defaults: | |
run: | |
working-directory: packages/rust-core/java | |
env: | |
RUST_BACKTRACE: full | |
CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG: true | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: java-bindings-ci-lint | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '21' | |
cache: 'maven' | |
- name: Install | |
run: ./mvnw clean compile spotless:check -DskipTests -D"gpg.skip" | |
build: | |
name: java-bindings-ci-build | |
uses: ./.github/workflows/java-bindings-build-common.yml | |
with: | |
publish: false | |
ci: | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 30 | |
name: java-bindings-ci-test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-latest | |
# - macos-latest | |
# - windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 8 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '8' | |
cache: 'maven' | |
- name: Install | |
run: ./mvnw clean install -DskipTests -D"gpg.skip" | |
- name: Test | |
# `mvn install` and `mvn artifact:compare` are required to verify reproducible builds: | |
# https://maven.apache.org/guides/mini/guide-reproducible-builds.html#how-to-test-my-maven-build-reproducibility | |
run: ./mvnw verify artifact:compare -D"gpg.skip" | |
env: | |
MAVEN_OPTS: "-server -Xmx512m -XX:MetaspaceSize=128m -XX:MaxMetaspaceSize=384m -XX:+UseG1GC -XX:+UseStringDeduplication -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -XX:SoftRefLRUPolicyMSPerMB=50 -Djava.awt.headless=true" |