-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.toml
More file actions
44 lines (40 loc) · 1.14 KB
/
Makefile.toml
File metadata and controls
44 lines (40 loc) · 1.14 KB
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
[config]
default_to_workspace = false
[tasks.run-vm]
script = ['''
set -euo pipefail
TARGET_BASE="$(cargo metadata --format-version 1 --no-deps | jq -r '.target_directory')"
MUSL_TARGET="x86_64-unknown-linux-musl"
cargo build --release --target "${MUSL_TARGET}" -p patchbay-runner --bin patchbay --example transfer
cargo run -p patchbay-vm -- run --patchbay-version "path:${TARGET_BASE}/${MUSL_TARGET}/release/patchbay" ${@}
''']
[tasks.test-vm]
script = ['''
set -euo pipefail
cargo run -p patchbay-vm -- test --target "x86_64-unknown-linux-musl" ${@}
''']
[tasks.format]
workspace = false
command = "cargo"
args = [
"fmt",
"--all",
"--",
"--config",
"unstable_features=true",
"--config",
"imports_granularity=Crate,group_imports=StdExternalCrate,reorder_imports=true,format_code_in_doc_comments=true",
]
[tasks.format-check]
workspace = false
command = "cargo"
args = [
"fmt",
"--all",
"--check",
"--",
"--config",
"unstable_features=true",
"--config",
"imports_granularity=Crate,group_imports=StdExternalCrate,reorder_imports=true,format_code_in_doc_comments=true",
]