-
Notifications
You must be signed in to change notification settings - Fork 2
/
Taskfile.yml
53 lines (47 loc) · 995 Bytes
/
Taskfile.yml
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
version: 3
tasks:
lint:
desc: Lint code
cmds:
- cargo clippy {{.CLI_ARGS}}
- cargo fmt --check --all
lint:fix:
desc: Lint code and fix problems with autofixes
cmds:
- cargo clippy --fix --allow-staged --allow-dirty
- task: format
format:
desc: Format code
cmds:
- cargo fmt --all {{.CLI_ARGS}}
test:
desc: Run tests
sources:
- Cargo.*
- src/**
- test-data/**
- tests/**
cmds:
- cargo test {{.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.*
- src/**
generates:
- target/debug/**
cmds:
- cargo build {{.CLI_ARGS}}
build:release:
desc: Build release artifacts
sources:
- Cargo.*
- src/**
generates:
- target/release/**
cmds:
- cargo build --release --locked {{.CLI_ARGS}}