-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.toml
59 lines (52 loc) · 1.48 KB
/
Makefile.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
[config]
skip_core_tasks = true
skip_git_env_info = true
skip_rust_env_info = true
[env]
ARTIFACTS_DIR = "${CARGO_MAKE_CRATE_TARGET_DIRECTORY}/artifacts"
ARTIFACTS_ROOTLESS_DIR = "${ARTIFACTS_DIR}/rootless"
ARTIFACTS_ROOTFULL_DIR = "${ARTIFACTS_DIR}/rootfull"
[tasks.test]
category = "Test"
description = "Runs cargo test"
command = "cargo"
args = ["test", "--all-features"]
[tasks.build-cli]
workspace = false
category = "Build"
description = "Performs build process of CLI module"
dependencies = ["create-artifacts-dir"]
env = { "CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS" = ["twackup-cli"] }
run_task = { name = "create-package", fork = true }
[tasks.build-lib]
workspace = false
category = "Build"
description = "Performs build process of all libraries modules"
env = { "CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS" = ["twackup"] }
dependencies = ["create-artifacts-dir"]
run_task = { name = "create-package", fork = true }
[tasks.build-gui]
workspace = false
category = "Build"
description = "Performs build process of GUI module"
command = "cargo"
args = [
"make",
"--cwd", "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/twackup-gui",
"build-all"
]
dependencies = ["create-artifacts-dir"]
[tasks.create-artifacts-dir]
command = "mkdir"
private = true
args = ["-p", "${ARTIFACTS_ROOTLESS_DIR}", "${ARTIFACTS_ROOTFULL_DIR}"]
[tasks.build-all]
workspace = false
category = "Build"
description = "Builds all modules. Used by CI"
dependencies = [
"test",
"build-cli",
"build-lib",
"build-gui"
]