diff --git a/.woodpecker.yml b/.woodpecker.yml index c116ae4..c2fcbc6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -1,6 +1,12 @@ steps: - build: + deps: image: rust + commands: + - make rust.test + - make rust.build + + build: + image: go commands: - make test - - make build-rust + - make example diff --git a/Makefile b/Makefile index 861b791..57ba8b5 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ -build-rust: +rust.build: @-rm -rf lib mkdir lib/ cd ./mcaptcha-pow-ffi/ && cargo build --release \ && cp ./target/release/libmcaptcha_pow_ffi.a ../lib/ \ && cp ./target/release/libmcaptcha_pow_ffi.so ../lib/ -test: +rust.test: cd ./mcaptcha-pow-ffi/ && cargo test example: