mirror of https://github.com/vacp2p/zerokit.git
chore: Makefile and consistent usage of cargo-make (#101)
* feat: add Makefile with pre build check. add targets for build, test and clean * feat: add workspace level build file * chore: add skeletal build files for each crate * chore: remove environment variable to extend workspace makefile * chore: formatting * chore: add release flags to all builds/tests
This commit is contained in:
parent
92c431c98f
commit
1502315605
|
@ -0,0 +1,15 @@
|
|||
.PHONY: all test clean
|
||||
|
||||
all: .pre-build
|
||||
@cargo make build
|
||||
|
||||
.pre-build:
|
||||
ifndef $(cargo make --help)
|
||||
@cargo install --force cargo-make
|
||||
endif
|
||||
|
||||
test: .pre-build
|
||||
@cargo make test
|
||||
|
||||
clean:
|
||||
@cargo clean
|
|
@ -0,0 +1,2 @@
|
|||
[env]
|
||||
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
|
@ -0,0 +1,7 @@
|
|||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "--release"]
|
|
@ -0,0 +1,7 @@
|
|||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "--release"]
|
|
@ -1,6 +1,3 @@
|
|||
[env]
|
||||
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
||||
|
||||
[tasks.pack-build]
|
||||
command = "wasm-pack"
|
||||
args = ["build", "--release", "--target", "web", "--scope", "waku"]
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "--release"]
|
|
@ -0,0 +1,7 @@
|
|||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "--release"]
|
|
@ -0,0 +1,7 @@
|
|||
[tasks.build]
|
||||
command = "cargo"
|
||||
args = ["build", "--release"]
|
||||
|
||||
[tasks.test]
|
||||
command = "cargo"
|
||||
args = ["test", "--release"]
|
Loading…
Reference in New Issue