2023-03-13 10:42:12 +00:00
|
|
|
name: Java
|
2022-11-24 19:46:47 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2023-03-13 10:42:12 +00:00
|
|
|
tests:
|
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
|
2023-01-17 17:47:46 +00:00
|
|
|
make PRESET=minimal build test
|