clean up + add pipeline
This commit is contained in:
parent
20bbd3c5fb
commit
7b0db64a76
|
@ -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
|
|
@ -22,7 +22,9 @@ else
|
|||
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
|
||||
|
||||
test:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
## Build
|
||||
```bash
|
||||
make c_kzg_4844_jni
|
||||
make build
|
||||
```
|
||||
|
||||
This will install the library in the `src/main/resources/lib` folder according to your OS
|
||||
|
|
Loading…
Reference in New Issue