-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toml
78 lines (65 loc) · 1.63 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.rust-format]
workspace = false
install_crate = "rustfmt"
command = "cargo"
args = ["fmt"]
[tasks.scarb-format]
workspace = false
command = "scarb"
args = ["fmt"]
[tasks.cairo-format]
workspace = false
script = [
"find cairo -name '*.cairo' ! -path 'cairo/build/*' -exec sh -c 'cairo-format -i \"$1\"; echo \"Formatted: $1\"' _ {} \\;"
]
[tasks.full-format]
workspace = false
dependencies = [
"rust-format",
"scarb-format",
"cairo-format",
]
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.test]
workspace = false
command = "cargo"
args = ["nextest", "run", "--workspace", "${@}"]
[tasks.python-requirements-install]
workspace = false
command = "pip"
args = ["install", "-r", "requirements.txt"]
[tasks.python-bootloader-install]
workspace = false
command = "pip"
args = ["install", "cairo/"]
[tasks.stone-prover-clone]
workspace = false
ignore_errors = true
command = "git"
args = ["clone", "https://github.com/starkware-libs/stone-prover.git"]
[tasks.stone-prover-build]
workspace = false
dependencies = ["stone-prover-clone"]
script = ["cd stone-prover && docker build --tag prover ."]
[tasks.stone-prover-install]
workspace = false
dependencies = ["stone-prover-build"]
script = [
"container_id=$(docker create prover)",
"docker cp -L ${container_id}:/bin/cpu_air_prover $HOME/.local/bin",
"docker cp -L ${container_id}:/bin/cpu_air_verifier $HOME/.local/bin",
]
[tasks.install]
workspace = false
dependencies = [
"python-requirements-install",
"python-bootloader-install",
"stone-prover-install",
]