-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
70 lines (62 loc) · 1.42 KB
/
Taskfile.yml
File metadata and controls
70 lines (62 loc) · 1.42 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
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
version: 3
interval: 1000ms
tasks:
lint:
desc: Lint code
cmds:
- cargo clippy --all-targets {{.CLI_ARGS}}
- cargo fmt --check --all
lint:fix:
desc: Lint code and fix problems with autofixes
cmds:
- cargo clippy --all-targets --fix --allow-staged --allow-dirty
- task: format
format:
desc: Format code
cmds:
- cargo fmt --all {{.CLI_ARGS}}
test:
desc: Run tests
sources:
- .cargo/config.toml
- godot/src/**
- godot/Cargo.toml
- lib/**
- lib/Cargo.toml
- Cargo.*
- rust-toolchain.*
cmds:
- cargo nextest run {{.CLI_ARGS}}
link:
desc: "Link the library to a Godot project: task link -- path-to-godot-project"
cmd: nu scripts/link.nu {{.CLI_ARGS}}
run:
desc: "Run the CLI with a debug build: task run -- <...args>"
cmds:
- cargo run {{.CLI_ARGS}}
build:
desc: Build debug artifacts
sources:
- .cargo/config.toml
- godot/src/**
- lib/**
- Cargo.*
- ./*/Cargo.toml
- rust-toolchain.*
generates:
- target/debug/**
cmds:
- cargo build {{.CLI_ARGS}}
build:release:
desc: Build release artifacts
sources:
- .cargo/config.toml
- godot/src/**
- lib/**
- Cargo.*
- ./*/Cargo.toml
- rust-toolchain.*
generates:
- target/release/**
cmds:
- cargo build --release --locked {{.CLI_ARGS}}