mirror of
https://github.com/codex-storage/codex-storage-proofs.git
synced 2025-03-02 11:20:41 +00:00
update build
This commit is contained in:
parent
926fb4b919
commit
f35649b7cf
@ -1,3 +1,4 @@
|
||||
import std/os
|
||||
|
||||
task genffi, "update the nim ffi bindings":
|
||||
exec "cargo install nbindgen"
|
||||
@ -10,4 +11,8 @@ task compileCircuits, "compile test circuits":
|
||||
exec "circom src/circuit_tests/storer-test.circom --r1cs --wasm -o src/circuit_tests/artifacts"
|
||||
|
||||
task tests, "run unit tests":
|
||||
let storerR1cs = fileExists "src/circuit_tests/artifacts/storer-test.r1cs"
|
||||
let storerWasm = fileExists "src/circuit_tests/artifacts/storer-test_js/storer-test.wasm"
|
||||
if not storerR1cs or not storerWasm:
|
||||
compileCircuitsTask()
|
||||
exec "nim c -r tests/tffi.nim"
|
||||
|
Loading…
x
Reference in New Issue
Block a user