-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtaskfile.tsk
More file actions
56 lines (47 loc) · 889 Bytes
/
taskfile.tsk
File metadata and controls
56 lines (47 loc) · 889 Bytes
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
BIN = tsk
INSTALL = /usr/bin
build {
@default
@desc Build release binary
cargo build --release
}
dev {
@desc Build debug binary
cargo build
}
install {
@desc Install to $INSTALL (Will fail without sudo)
@deps build
if $$OS == windows {
@error("This install directive is for linux, compile the installer with ISS for windows.")
} else {
strip target/release/$BIN
rm -f $INSTALL/$BIN
cp target/release/$BIN $INSTALL/$BIN
echo "Installed"
}
}
remove {
@desc Remove from $INSTALL
@ignore
rm -f $INSTALL/$BIN
echo "Removed"
}
check {
@desc Run clippy and format check
cargo clippy -- -D warnings
cargo fmt --check
}
fmt {
@desc Format source code
cargo fmt
}
clean {
@desc Remove build artifacts
@ignore
cargo clean
}
ci {
@desc Full CI pipeline
@deps check build
}