clean up + add pipeline

This commit is contained in:
Stefan Bratanov 2022-11-24 19:46:47 +00:00
parent 20bbd3c5fb
commit 7b0db64a76
3 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,21 @@
name: Java bindings tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test-java-bindings:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup
run: cd src && make blst && make all
- name: Test
run: cd bindings/java && make build test

View File

@ -22,7 +22,9 @@ else
endif endif
endif endif
c_kzg_4844_jni: all: build test
build:
${CLANG_EXECUTABLE} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -o src/main/resources/lib/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a ${CLANG_EXECUTABLE} ${CLANG_FLAGS} -O -Wall ${addprefix -I,${INCLUDE_DIRS}} -I"${JAVA_HOME}/include" -I"${JAVA_HOME}/include/${JNI_INCLUDE_FOLDER}" -o src/main/resources/lib/${LIBRARY_RESOURCE} c_kzg_4844_jni.c c_kzg_4844.o ../../lib/libblst.a
test: test:

View File

@ -7,7 +7,7 @@
## Build ## Build
```bash ```bash
make c_kzg_4844_jni make build
``` ```
This will install the library in the `src/main/resources/lib` folder according to your OS This will install the library in the `src/main/resources/lib` folder according to your OS