This commit is contained in:
parent
8257f9304b
commit
8b202e5363
2 changed files with 10 additions and 4 deletions
|
@ -1,6 +1,12 @@
|
||||||
steps:
|
steps:
|
||||||
build:
|
deps:
|
||||||
image: rust
|
image: rust
|
||||||
|
commands:
|
||||||
|
- make rust.test
|
||||||
|
- make rust.build
|
||||||
|
|
||||||
|
build:
|
||||||
|
image: go
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
- make build-rust
|
- make example
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -1,11 +1,11 @@
|
||||||
build-rust:
|
rust.build:
|
||||||
@-rm -rf lib
|
@-rm -rf lib
|
||||||
mkdir lib/
|
mkdir lib/
|
||||||
cd ./mcaptcha-pow-ffi/ && cargo build --release \
|
cd ./mcaptcha-pow-ffi/ && cargo build --release \
|
||||||
&& cp ./target/release/libmcaptcha_pow_ffi.a ../lib/ \
|
&& cp ./target/release/libmcaptcha_pow_ffi.a ../lib/ \
|
||||||
&& cp ./target/release/libmcaptcha_pow_ffi.so ../lib/
|
&& cp ./target/release/libmcaptcha_pow_ffi.so ../lib/
|
||||||
|
|
||||||
test:
|
rust.test:
|
||||||
cd ./mcaptcha-pow-ffi/ && cargo test
|
cd ./mcaptcha-pow-ffi/ && cargo test
|
||||||
|
|
||||||
example:
|
example:
|
||||||
|
|
Loading…
Reference in a new issue