2022-11-24 19:46:47 +00:00
|
|
|
name: Java bindings tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-java-bindings:
|
2022-12-06 12:58:56 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-11-24 19:46:47 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-11-24 20:03:30 +00:00
|
|
|
- uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
distribution: "temurin"
|
|
|
|
java-version: "11"
|
2022-12-06 12:58:56 +00:00
|
|
|
- name: Build blst
|
|
|
|
run: |
|
|
|
|
cd src
|
|
|
|
make blst
|
|
|
|
- name: Build and Test (mainnet preset)
|
|
|
|
run: |
|
|
|
|
cd bindings/java
|
|
|
|
make build test
|
|
|
|
- name: Build and Test (minimal preset)
|
|
|
|
run: |
|
|
|
|
cd bindings/java
|
|
|
|
make PRESET=minimal build test -B
|