generated from urin/.github
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
94 lines (78 loc) · 2.06 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
[tasks.default]
alias = "build-all"
[tasks.build-all]
dependencies = ["doc", "build", "build-platforms"]
run_task = "dist"
[tasks.doc]
command = "cargo"
args = ["doc", "--bins", "--no-deps"]
[tasks.build]
command = "cargo"
args = ["build", "--release"]
[tasks.build-platforms]
command = "cargo"
args = [
"zigbuild", "--release",
"--target", "aarch64-apple-darwin",
"--target", "aarch64-unknown-linux-musl",
"--target", "x86_64-apple-darwin",
"--target", "x86_64-pc-windows-gnu",
"--target", "x86_64-unknown-linux-musl",
]
[tasks.build-linux]
command = "cargo"
args = [
"zigbuild", "--release",
"--target", "aarch64-unknown-linux-musl",
"--target", "x86_64-unknown-linux-musl",
]
[tasks.build-apple]
command = "cargo"
args = [
"zigbuild", "--release",
"--target", "aarch64-apple-darwin",
"--target", "x86_64-apple-darwin",
]
[tasks.build-windows]
command = "cargo"
args = [
"zigbuild", "--release",
"--target", "x86_64-pc-windows-gnu",
]
[tasks.dist]
script_runner = "@shell"
script = '''
tar caf dist/moove-apple-aarch64.tar.gz -C target/aarch64-apple-darwin/release moove
tar caf dist/moove-linux-aarch64.tar.gz -C target/aarch64-unknown-linux-musl/release moove
tar caf dist/moove-apple-x86_64.tar.gz -C target/x86_64-apple-darwin/release moove
tar caf dist/moove-linux-x86_64.tar.gz -C target/x86_64-unknown-linux-musl/release moove
tar caf dist/moove-windows-x86_64.tar.gz -C target/x86_64-pc-windows-gnu/release moove.exe
'''
[tasks.setup]
command = "rustup"
args = [
"target", "add",
"aarch64-apple-darwin",
"aarch64-unknown-linux-musl",
"x86_64-apple-darwin",
"x86_64-pc-windows-gnu",
"x86_64-unknown-linux-musl"
]
[tasks.test]
command = "cargo"
args = ["test"]
dependencies = ["clippy"]
[tasks.clippy]
command = "cargo"
args = ["clippy"]
[tasks.update]
dependencies = ["cargo-update", "cargo-upgrade"]
[tasks.cargo-update]
command = "cargo"
args = ["update"]
[tasks.cargo-upgrade]
command = "cargo"
args = ["upgrade"]
[tasks.release]
command = "cargo"
args = ["release"]