This repository has been archived by the owner on Mar 30, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
136 lines (120 loc) · 2.95 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
[config]
default_to_workspace = false
[env]
WASM_BUILD_WORKSPACE_HINT = "${CARGO_MAKE_WORKING_DIRECTORY}"
[env.inc]
CARGO_INCREMENTAL = 1
[tasks.fmt]
args = ["fmt"]
command = "cargo"
install_crate = "rustfmt"
[tasks.check]
args = ["check"]
command = "cargo"
dependencies = ["format"]
env = { "SKIP_WASM_BUILD" = "1" }
[tasks.clippy]
args = ["clippy"]
command = "cargo"
dependencies = ["format"]
env = { "SKIP_WASM_BUILD" = "1" }
[tasks.common-build]
args = [
"build",
"--locked",
"-p",
"darwinia",
"--release",
"--no-default-features",
"--features",
"@@split(FEATURES, )",
]
[tasks.common-run]
args = [
"--unsafe-ws-external",
"--unsafe-rpc-external",
"--rpc-methods",
"unsafe",
"--rpc-cors",
"all",
"--tmp",
"--alice",
"--collator",
"@@split(FLAGS, )",
]
[tasks.build-darwinia]
command = "cargo"
env = { "FEATURES" = "darwinia-native" }
extend = "common-build"
[tasks.cbuild-darwinia]
command = "cross"
env = { "FEATURES" = "darwinia-native" }
extend = "common-build"
[tasks.run-darwinia]
command = "target/release/darwinia"
env = { "FLAGS" = "--chain darwinia-dev" }
extend = "common-run"
[tasks.build-crab]
command = "cargo"
env = { "FEATURES" = "crab-native" }
extend = "common-build"
[tasks.cbuild-crab]
command = "cross"
env = { "FEATURES" = "crab-native" }
extend = "common-build"
[tasks.run-crab]
command = "target/release/darwinia"
env = { "FLAGS" = "--chain crab-dev" }
extend = "common-run"
[tasks.build-pangoro]
command = "cargo"
env = { "FEATURES" = "pangoro-native" }
extend = "common-build"
[tasks.cbuild-pangoro]
command = "cross"
env = { "FEATURES" = "pangoro-native" }
extend = "common-build"
[tasks.run-pangoro]
command = "target/release/darwinia"
env = { "FLAGS" = "--chain pangoro-dev" }
extend = "common-run"
[tasks.build-pangolin]
command = "cargo"
env = { "FEATURES" = "pangolin-native" }
extend = "common-build"
[tasks.cbuild-pangolin]
command = "cross"
env = { "FEATURES" = "pangolin-native" }
extend = "common-build"
[tasks.run-pangolin]
command = "target/release/darwinia"
env = { "FLAGS" = "--chain pangolin-dev" }
extend = "common-run"
# Build for runtime benchmarks.
[tasks.build-bench]
command = "cargo"
env = { "FEATURES" = "all-natives,runtime-benchmarks" }
extend = "common-build"
# Build for try runtime.
[tasks.build-trt]
command = "cargo"
env = { "FEATURES" = "all-natives,try-runtime" }
extend = "common-build"
# Build for all runtimes.
[tasks.build-ar]
command = "cargo"
env = { "FEATURES" = "all-natives" }
extend = "common-build"
# Build for testnets.
[tasks.build-tns]
command = "cargo"
env = { "FEATURES" = "pangolin-native,pangoro-native" }
extend = "common-build"
# Build for mainnets.
[tasks.build-mns]
command = "cargo"
env = { "FEATURES" = "crab-native,darwinia-native" }
extend = "common-build"
[tasks.build-all]
args = ["build", "--locked", "--release", "--all-features"]
command = "cargo"