45 lines
738 B
TOML
45 lines
738 B
TOML
[env]
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
|
|
|
|
[config]
|
|
skip_core_tasks = true
|
|
|
|
[tasks.default]
|
|
dependencies = ["build"]
|
|
|
|
[tasks.build]
|
|
workspace = false
|
|
command = "docker-compose"
|
|
args = ["run", "build", "${@}"]
|
|
|
|
[tasks.fmt]
|
|
command = "cargo"
|
|
args = ["fmt"]
|
|
|
|
#---------------------------------
|
|
#
|
|
# Project setup tasks
|
|
#
|
|
#---------------------------------
|
|
|
|
[tasks.setup]
|
|
dependencies = ["pull-rust-image", "update-submodules"]
|
|
|
|
[tasks.pull-rust-image]
|
|
shell = "docker pull rust:1-alpine"
|
|
|
|
[tasks.update-submodules]
|
|
shell = "git submodule update --init"
|
|
|
|
#----------------------
|
|
#
|
|
# CI tasks
|
|
#
|
|
#----------------------
|
|
|
|
[tasks.ci]
|
|
dependencies = ["setup", "build"]
|
|
|
|
[tasks.convco-check]
|
|
command = "convco"
|
|
args = ["check"] |