-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTaskfile.yml
45 lines (44 loc) · 979 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
# https://taskfile.dev
version: "3"
tasks:
release:
desc: build and publish release
cmds:
- test {{.CLI_ARGS}}
- grep -F '"{{.CLI_ARGS}}"' Cargo.toml
- cargo publish
- git tag {{.CLI_ARGS}}
- git push
- git push --tags
- gh release create --generate-notes {{.CLI_ARGS}}
format:
desc: "run code formatters"
cmds:
- cargo fmt
test:
desc: "run tests"
cmds:
- rustup target add wasm32-unknown-unknown
- cargo test --all-features --lib
- >
cargo build
--example triangle
--target wasm32-unknown-unknown
--no-default-features
- >
cargo build
--example image
--target wasm32-unknown-unknown
--features alloc,std
--no-default-features
lint:
desc: "run linters"
cmds:
- cargo clippy
all:
cmds:
- task: format
- task: lint
- task: test
default:
- task: all