-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
63 lines (53 loc) · 1.5 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
[tasks.install-llvm-tools-preview]
install_crate = { rustup_component_name = "llvm-tools-preview" }
[tasks.install-rust-src]
install_crate = { rustup_component_name = "rust-src" }
[tasks.install-etheryal-bootimage]
install_crate = { crate_name = "etheryal-bootimage", binary = "etheryal-bootimage", test_arg = ["--help"] }
[tasks.install-clippy]
install_crate = { rustup_component_name = "clippy" }
[tasks.clippy]
description = "Runs clippy checks."
category = "Build"
command = "cargo"
args = [
"clippy",
"--color",
"always",
"--all-targets",
"--all-features",
"--",
"-D",
"warnings",
]
dependencies = [
"install-llvm-tools-preview",
"install-rust-src",
"install-clippy",
]
[tasks.format-check]
install_crate = { rustup_component_name = "rustfmt-preview", binary = "rustfmt", test_arg = "--help" }
command = "cargo"
args = ["fmt", "--", "--color", "always", "--check"]
[tasks.build]
dependencies = ["install-llvm-tools-preview", "install-rust-src"]
[tasks.test]
dependencies = [
"install-llvm-tools-preview",
"install-rust-src",
"install-etheryal-bootimage",
]
[tasks.run]
description = "Runs etheryal in a virtual machine."
category = "Build"
command = "cargo"
args = ["run"]
dependencies = [
"install-llvm-tools-preview",
"install-rust-src",
"install-etheryal-bootimage",
]
[tasks.dev-test-flow]
dependencies = ["format", "clippy", "test"]
[tasks.build-flow]
dependencies = ["format", "build"]