Newer
Older
"build/scripts/build.toml",
"build/scripts/test.toml",
"build/scripts/publish.toml"
[env]
BOOL = false
STRING = 'test'
TYPE = '%{dir.home} %{env.STRING} %{arg.1}'
ARR = ['hello', 'world']
"cargo zigbuild --release --no-default-features --features client --color always",
# "cargo zigbuild --release --all-features --color always",
"cp target/release/maid bin/maid",
# "cp target/release/maid-server bin/maid-server",
# target = ["bin/maid", "bin/maid-server"]
target = ["bin/maid"]
# Remote build target
[tasks.build.remote]
silent = false
exclusive = false
shell = "/bin/bash"
image = "messense/cargo-zigbuild:latest"
push = ["maid", "build", "Cargo.toml", "Cargo.lock"]
pull = "bin"
clean.script = ["du -h bin", "rm -rf bin", "mkdir bin", "du -h bin"]
install.script = ["maid build -q","sudo cp bin/maid /usr/local/bin", "maid -V"]
api_server = { path = "bin", depends = ["build"], script = "./maid_server" }