-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
111 lines (93 loc) · 2.12 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
[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 = [
'for file in $(find cairo -name "*.cairo" ! -path "cairo/build/*"); do cairo-format -i $file && echo \"Formatted: $file\"; done'
]
[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-rust]
workspace = false
command = "cargo"
args = ["nextest", "run", "--workspace", "${@}"]
[tasks.full-test-rust]
workspace = false
command = "cargo"
args = ["nextest", "run", "--workspace", "${@}", "--features", "full_test"]
[tasks.test-scarb]
workspace = false
script = [
"scarb test"
]
[tasks.light-test]
workspace = false
dependencies = [
"test-rust",
"test-scarb",
]
[tasks.full-test]
workspace = false
dependencies = [
"test-scarb",
"full-test-rust",
]
[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",
]
[tasks.commit]
workspace = false
dependencies = [
"clean",
"full-format",
"full-test",
]